From c772a3915648e4a7d2430f4e4991ad7d97119b02 Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Fri, 14 Jun 2019 14:51:28 +0900 Subject: [PATCH] Back port email regex patch --- www/lib/CoreLibs/Basic.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/lib/CoreLibs/Basic.inc b/www/lib/CoreLibs/Basic.inc index 8aca7976..dc9ed44e 100644 --- a/www/lib/CoreLibs/Basic.inc +++ b/www/lib/CoreLibs/Basic.inc @@ -276,7 +276,7 @@ class Basic } // set the regex for checking emails - $this->email_regex = "^[A-Za-z0-9!#$%&'*+-\/=?^_`{|}~][A-Za-z0-9!#$%:\(\)&'*+-\/=?^_`{|}~\.]{0,63}@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]{1,})*\.([a-zA-Z]{2,}){1}$"; + $this->email_regex = "^[A-Za-z0-9!#$%&'*+\-\/=?^_`{|}~][A-Za-z0-9!#$%:\(\)&'*+\-\/=?^_`{|}~\.]{0,63}@[a-zA-Z0-9\-]+(\.[a-zA-Z0-9\-]{1,})*\.([a-zA-Z]{2,}){1}$"; // this is for error check parts in where the email regex failed $this->email_regex_check = array ( 1 => "@(.*)@(.*)", // double @