mirror of
https://github.com/e107inc/e107.git
synced 2025-01-18 05:09:05 +01:00
#3981 fix for fatal error because not supported mysql function
This commit is contained in:
parent
e470f4b786
commit
ee6269ae7f
@ -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'));
|
||||
@ -293,4 +293,4 @@ class alt_login
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user