fixed the underscore in email addresses

This commit is contained in:
SJ
2012-11-28 23:54:55 +01:00
parent b137a1b0ef
commit 34568e7d82
3 changed files with 4 additions and 2 deletions

View File

@ -646,7 +646,7 @@ class ModelSearchSearch extends Model {
private function fix_email_address_for_sphinx($email = '') {
$email = preg_replace("/\|@/", "|", $email);
return preg_replace("/[\@\.\+\-]/", "X", $email);
return preg_replace("/[\@\.\+\-\_]/", "X", $email);
}