mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-09 09:27:03 +03:00
Update index.php
[2021-03-04 14:09:28.239][149c2f2a] PHP[NOTICE]: Error: preg_match_all(): Unknown modifier 'g'^M
This commit is contained in:
parent
0c8c28fe41
commit
5cd348c63a
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue