diff --git a/app/Lib/Tools/AttributeValidationTool.php b/app/Lib/Tools/AttributeValidationTool.php index 15db1b758..825d22d72 100644 --- a/app/Lib/Tools/AttributeValidationTool.php +++ b/app/Lib/Tools/AttributeValidationTool.php @@ -407,7 +407,7 @@ class AttributeValidationTool case 'dns-soa-email': case 'jabber-id': // we don't use the native function to prevent issues with partial email addresses - if (preg_match("#^.*\@.*\..*$#i", $value)) { + if (preg_match("#^.[^\s]*\@.*\..*$#i", $value)) { return true; } return __('Email address has an invalid format. Please double check the value or select type "other".');