summaryrefslogtreecommitdiff
path: root/it_user.class
diff options
context:
space:
mode:
authorChristian Schneider2013-01-30 15:33:35 +0000
committerChristian Schneider2013-01-30 15:33:35 +0000
commitba94571f2f87243699c3294050186e13c529fc62 (patch)
tree408da3c58c9e4c3f143c4ac911059eb2c6c53c51 /it_user.class
parentcf4545ccbb610a75a8b1385cfe3e1739d589cea0 (diff)
downloaditools-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.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;