mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-06-28 14:55:48 +00:00
Error: preg_match_all(): Unknown modifier 'g'
Error: preg_match_all(): Unknown modifier 'g'
This commit is contained in:
committed by
GitHub
parent
a528c93d47
commit
ea1ce46f2d
@@ -210,7 +210,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;
|
||||
|
||||
Reference in New Issue
Block a user