Skip to content

Commit

Permalink
fix preg user login
Browse files Browse the repository at this point in the history
  • Loading branch information
mzhelskiy committed Feb 3, 2017
1 parent baeae0c commit 54d2560
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/classes/modules/user/User.class.php
Expand Up @@ -1406,7 +1406,7 @@ public function CheckLogin($sLogin)
$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;
Expand Down

0 comments on commit 54d2560

Please sign in to comment.