diff --git a/functions.inc.php b/functions.inc.php index d64ac41f..f36b00b7 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -1189,6 +1189,7 @@ function pacrypt ($pw, $pw_db="") // this is apparently useful for pam_mysql etc. elseif ($CONF['encrypt'] == 'mysql_encrypt') { + $pw = escape_string($pw); if ($pw_db!="") { $salt=substr($pw_db,0,2); $res=db_query("SELECT ENCRYPT('".$pw."','".$salt."');");