You can now search for @username@domain.tld in dirfind and the search will resolve that.

This commit is contained in:
Michael Vogel 2015-11-08 14:48:47 +01:00
parent e74916d395
commit e12b0d27bb
2 changed files with 36 additions and 4 deletions

View file

@ -1020,8 +1020,9 @@ if(! function_exists('valid_email')) {
*/
function valid_email($x){
if(get_config('system','disable_email_validation'))
return true;
// Removed because Fabio told me so.
//if(get_config('system','disable_email_validation'))
// return true;
if(preg_match('/^[_a-zA-Z0-9\-\+]+(\.[_a-zA-Z0-9\-\+]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)+$/',$x))
return true;