|
@@ -208,6 +208,13 @@ function Login2()
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ if ($smcFunc['strlen']($_POST['user']) > 80)
|
|
|
+ {
|
|
|
+ $_POST['user'] = $smcFunc['substr']($_POST['user'], 0, 79);
|
|
|
+ $context['default_username'] = preg_replace('~&#(\\d{1,7}|x[0-9a-fA-F]{1,6});~', '&#\\1;', $smcFunc['htmlspecialchars']($_POST['user']));
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
if (in_array('retry', call_integration_hook('integrate_validate_login', array($_POST['user'], isset($_POST['hash_passwrd']) && strlen($_POST['hash_passwrd']) == 40 ? $_POST['hash_passwrd'] : null, $modSettings['cookieTime'])), true))
|
|
|
{
|