1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-13 17:09:46 +01:00

Merge pull request #3990 from Jimmi08/patch-1

Fixes #3981 fatal error because non supported mysql function
This commit is contained in:
Cameron 2019-12-28 12:01:47 -08:00 committed by GitHub
commit 7e5b104f7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,7 +103,7 @@ class alt_login
if (MAGIC_QUOTES_GPC == FALSE)
{
$username = mysql_real_escape_string($username);
$username = e107::getParser()->toDB($username);
}
$username = preg_replace("/\sOR\s|\=|\#/", "", $username);
$username = substr($username, 0, e107::getPref('loginname_maxlength'));