From 85773457999a2a68f59783b9c99ed3af3c14ce61 Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Tue, 20 Jul 2021 06:18:14 +0900 Subject: [PATCH] class check email fix getEmailRegexCheck This should only return the part email checks from position 1 to n, but it returned all of them. Fixed with slice call --- www/lib/CoreLibs/Check/Email.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/www/lib/CoreLibs/Check/Email.php b/www/lib/CoreLibs/Check/Email.php index c0b3b9f0..9c87b105 100644 --- a/www/lib/CoreLibs/Check/Email.php +++ b/www/lib/CoreLibs/Check/Email.php @@ -120,7 +120,13 @@ class Email */ public static function getEmailRegexCheck(): array { - return self::$email_regex_check; + // return all but the first + return array_slice( + self::$email_regex_check, + 1, + count(self::$email_regex_check) - 1, + true + ); } /**