mirror of
				https://bitbucket.org/jsuto/piler.git
				synced 2025-11-01 00:42:26 +01: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