From 221a7572ab4d50be2588f15edd83769e218679ae Mon Sep 17 00:00:00 2001 From: "dave.winter" <dave.winter@commanderbond.net> Date: Fri, 17 Jun 2005 14:42:15 +0200 Subject: [PATCH] fixed bug for MySQL passcrypt Write the long patch description into this file. The first line of this file will be the patch name. Everything in this file from the above ***DARCS*** line on will be ignored. This patch contains the following changes: M ./inc/auth/mysql.php -1 +2 darcs-hash:20050617124215-c2bc1-4c4a7a3bea1cab76b36a0e5cfc31a22d10fbadc8.gz --- inc/auth/mysql.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/auth/mysql.php b/inc/auth/mysql.php index c60e9b018..8f236fe57 100644 --- a/inc/auth/mysql.php +++ b/inc/auth/mysql.php @@ -83,7 +83,8 @@ function auth_checkPass($user,$pass){ // we leave pass checking to the database $sql = str_replace('%u',addslashes($user),$cnf['passcheck']); $sql = str_replace('%g',addslashes($conf['defaultgroup']),$sql); - $sql = str_replace('%p',addslashes($pass,$sql)); + $sql = str_replace('%p',addslashes($pass),$sql); + $result = auth_mysql_runsql($sql); if(count($result) == 1){ return true; -- GitLab