|
@@ -168,7 +168,7 @@ function Login2()
|
|
|
}
|
|
|
|
|
|
|
|
|
- $context['default_username'] = isset($_POST['user']) ? preg_replace('~&#(\\d{1,7}|x[0-9a-fA-F]{1,6});~', '&#\\1;', htmlspecialchars($_POST['user'])) : '';
|
|
|
+ $context['default_username'] = isset($_POST['user']) ? preg_replace('~&#(\\d{1,7}|x[0-9a-fA-F]{1,6});~', '&#\\1;', $smcFunc['htmlspecialchars']($_POST['user'])) : '';
|
|
|
$context['default_password'] = '';
|
|
|
$context['never_expire'] = $modSettings['cookieTime'] == 525600 || $modSettings['cookieTime'] == 3153600;
|
|
|
$context['login_errors'] = array($txt['error_occured']);
|