diff options
author | Chad Kieffer <ckieffer@gmail.com> | 2009-09-01 23:22:44 -0600 |
---|---|---|
committer | Chad Kieffer <ckieffer@gmail.com> | 2009-09-01 23:22:44 -0600 |
commit | adc7f39f7d1b3cedb0a353b3048e95479df553b0 (patch) | |
tree | 503e18f2525b64aa7934005c812ec8427c979a3d /installer/installer.php | |
parent | bc147d1c6c95c1ba1394f0198d9e5b810071a4ac (diff) | |
parent | d26f9147a000ed907695b5fa593ee9c1d9b3354d (diff) |
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'installer/installer.php')
-rw-r--r-- | installer/installer.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/installer/installer.php b/installer/installer.php index 7173a7ee..7fed25c7 100644 --- a/installer/installer.php +++ b/installer/installer.php @@ -127,7 +127,8 @@ class installer { $salt .= chr($char); } $password = substr(md5(time() * rand()), 0, 6); - $hashed_password = $salt . md5($salt . $password); + // Escape backslash in preparation for our UPDATE statement. + $hashed_password = str_replace("\\", "\\\\", $salt . md5($salt . $password)); $sql = self::prepend_prefix($config["prefix"], "UPDATE {users} SET `password` = '$hashed_password' WHERE `id` = 2"); if (mysql_query($sql)) { |