diff options
author | Christian Schneider | 2013-01-30 15:33:35 +0000 |
---|---|---|
committer | Christian Schneider | 2013-01-30 15:33:35 +0000 |
commit | ba94571f2f87243699c3294050186e13c529fc62 (patch) | |
tree | 408da3c58c9e4c3f143c4ac911059eb2c6c53c51 /it_user.class | |
parent | cf4545ccbb610a75a8b1385cfe3e1739d589cea0 (diff) | |
download | itools-ba94571f2f87243699c3294050186e13c529fc62.tar.gz itools-ba94571f2f87243699c3294050186e13c529fc62.tar.bz2 itools-ba94571f2f87243699c3294050186e13c529fc62.zip |
Get rid of explicit mysql_real_escape_string outside of it_dbi
Diffstat (limited to 'it_user.class')
-rw-r--r-- | it_user.class | 2 |
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; |