From ee6269ae7fc716ab0e3304ab2caa9c8db339395f Mon Sep 17 00:00:00 2001 From: Jimako Date: Tue, 29 Oct 2019 17:52:19 +0100 Subject: [PATCH] #3981 fix for fatal error because not supported mysql function --- e107_plugins/alt_auth/alt_auth_login_class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e107_plugins/alt_auth/alt_auth_login_class.php b/e107_plugins/alt_auth/alt_auth_login_class.php index 4234fd32c..f373b200d 100755 --- a/e107_plugins/alt_auth/alt_auth_login_class.php +++ b/e107_plugins/alt_auth/alt_auth_login_class.php @@ -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 } } -?> \ No newline at end of file +?>