mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 01:37:02 +02:00
@ -843,6 +843,10 @@ class ModelSearchSearch extends Model {
|
||||
|
||||
|
||||
public function fix_email_address_for_sphinx($email = '') {
|
||||
if(strlen($email) > MAX_EMAIL_LEN) {
|
||||
return md5($email . ' ');
|
||||
}
|
||||
|
||||
$email = preg_replace("/\|@/", "|", $email);
|
||||
return preg_replace("/[\@\.\+\-\_]/", "X", $email);
|
||||
}
|
||||
|
Reference in New Issue
Block a user