summaryrefslogtreecommitdiff
path: root/inc/auth/mysql.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/auth/mysql.php')
-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;