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:
parent
baeae0cfb7
commit
54d2560483
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue