Skip to content
Snippets Groups Projects
Commit 221a7572 authored by dave.winter's avatar dave.winter
Browse files

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
parent 5c3f206f
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment