1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-16 14:50:48 +03:00

fix preg user login

This commit is contained in:
Mzhelskiy Maxim 2017-02-04 00:26:31 +07:00
parent baeae0cfb7
commit 54d2560483

View file

@ -1406,7 +1406,7 @@ class ModuleUser extends Module
$charset = Config::Get('module.user.login.charset');
$min = Config::Get('module.user.login.min_size');
$max = Config::Get('module.user.login.max_size');
if (preg_match('/^[' . $charset . ']{' . $min . ',' . $max . '}$/i', $sLogin)) {
if (preg_match('/^[' . $charset . ']{' . $min . ',' . $max . '}$/ui', $sLogin)) {
return true;
}
return false;