[geeklog-hg] geeklog: used single quotes for strings (Postgres cares)

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Fri Jun 29 16:18:25 EDT 2012


changeset 8735:d705b6c4f0b6
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/d705b6c4f0b6
user: Dirk Haun <dirk at haun-online.de>
date: Fri Jun 29 21:47:14 2012 +0200
description:
used single quotes for strings (Postgres cares)

diffstat:

 system/lib-security.php |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff -r 9f91f1ceed7f -r d705b6c4f0b6 system/lib-security.php
--- a/system/lib-security.php	Fri Jun 29 21:40:33 2012 +0200
+++ b/system/lib-security.php	Fri Jun 29 21:47:14 2012 +0200
@@ -1292,8 +1292,8 @@
     // update the database with the new password using algorithm and stretch from $_CONF
     $salt = SEC_generateSalt();
     $newhash = SEC_encryptPassword($password, $salt, $_CONF['pass_alg'], $_CONF['pass_stretch']);
-    $query = 'UPDATE ' . $_TABLES['users'] . " SET passwd = \"$newhash\", "
-        . "salt = \"$salt\", algorithm =\"" . $_CONF['pass_alg'] . '",' 
+    $query = 'UPDATE ' . $_TABLES['users'] . " SET passwd = '$newhash', "
+        . "salt = '$salt', algorithm ='" . $_CONF['pass_alg'] . "', " 
         . 'stretch = ' . $_CONF['pass_stretch'] . " WHERE uid = $uid";
     DB_query($query);
 



More information about the geeklog-cvs mailing list