fixed not working special char detection

This commit is contained in:
Ralf Becker 2013-07-25 07:21:35 +00:00
parent 37671ac812
commit 71676f982a

View File

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