From 19458a2ebaa54734d1f4cd08671d2fcfb3d92265 Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Fri, 14 Jun 2019 14:50:46 +0900 Subject: [PATCH] Escape - in email regex in Basic class --- 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 8c595848..1c5dd540 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 @