* Admin/Preferences: fixed not working special char detection in passwords, if you required 4 character classes it always failed

This commit is contained in:
Ralf Becker 2013-07-25 07:24:33 +00:00
parent d10dc3ac8b
commit be0c913c35

View File

@ -599,7 +599,7 @@ class auth
{
$missing[] = lang('lowercase letters');
}
if (!preg_match('/'.preg_quote('~!@#$%^&*_-+=`|\(){}[]:;"\'<>,.?/', '/').'/', $passwd))
if (!preg_match('/['.preg_quote('~!@#$%^&*_-+=`|\(){}[]:;"\'<>,.?/', '/').']/', $passwd))
{
$missing[] = lang('special characters');
}