summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_user.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_user.class b/it_user.class
index 328819b..75fc52e 100644
--- a/it_user.class
+++ b/it_user.class
@@ -352,7 +352,7 @@ function create_password($length = 8, $charset = 'abcdefghjkpqrstuvwxyz23456789A
*/
function crypt_password($password)
{
- $result = $this->query("SELECT PASSWORD('" . mysql_real_escape_string($password) . "')");
+ $result = $this->query("SELECT PASSWORD(" . $this->escape_string($password) . ")");
list($pw) = mysql_fetch_array($result);
return $pw;