summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordave.winter <dave.winter@commanderbond.net>2005-06-17 14:42:15 +0200
committerdave.winter <dave.winter@commanderbond.net>2005-06-17 14:42:15 +0200
commit221a7572ab4d50be2588f15edd83769e218679ae (patch)
treef89ae9e6c9b592ec90b282e95045c7c48f63137c
parent5c3f206fdf145109911ae769c032e557437a9121 (diff)
downloadrpg-221a7572ab4d50be2588f15edd83769e218679ae.tar.gz
rpg-221a7572ab4d50be2588f15edd83769e218679ae.tar.bz2
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
-rw-r--r--inc/auth/mysql.php3
1 files changed, 2 insertions, 1 deletions
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;