From 5cd348c63a56dd32b4f59092b85ab72246397543 Mon Sep 17 00:00:00 2001 From: dominiquefournier Date: Thu, 4 Mar 2021 15:13:34 +0100 Subject: [PATCH] Update index.php [2021-03-04 14:09:28.239][149c2f2a] PHP[NOTICE]: Error: preg_match_all(): Unknown modifier 'g'^M --- plugins/change-password/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/change-password/index.php b/plugins/change-password/index.php index 6ec1037ff..892817ad0 100644 --- a/plugins/change-password/index.php +++ b/plugins/change-password/index.php @@ -212,7 +212,7 @@ class ChangePasswordPlugin extends \RainLoop\Plugins\AbstractPlugin } } $c = 0; - $re = [ '/[^0-9A-Za-z]+/g', '/[0-9]+/g', '/[A-Z]+/g', '/[a-z]+/g' ]; + $re = [ '/[^0-9A-Za-z]+/', '/[0-9]+/', '/[A-Z]+/', '/[a-z]+/' ]; foreach ($re as $regex) { if (\preg_match_all($regex, $sPassword, $m)) { ++$c;