From 67f2f5d425882a8a86f02772795f53deeced4d8e Mon Sep 17 00:00:00 2001 From: Koen Van Impe Date: Fri, 29 Jul 2022 12:23:55 +0200 Subject: [PATCH] Update AttributeValidationTool.php --- app/Lib/Tools/AttributeValidationTool.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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".');