[Fusionforge-commits] r9089 - trunk/gforge/common/include

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Mon Mar 15 21:40:49 CET 2010


Author: aljeux
Date: 2010-03-15 21:40:48 +0100 (Mon, 15 Mar 2010)
New Revision: 9089

Modified:
   trunk/gforge/common/include/session.php
Log:
Fix broken SQL query in session_set_new()

Modified: trunk/gforge/common/include/session.php
===================================================================
--- trunk/gforge/common/include/session.php	2010-03-15 20:40:43 UTC (rev 9088)
+++ trunk/gforge/common/include/session.php	2010-03-15 20:40:48 UTC (rev 9089)
@@ -407,7 +407,7 @@
 	session_cookie("session_ser", $cookie, "", $GLOBALS['sys_session_expire']);
 	$session_ser=$cookie;
 
-	$res = db_query_params ('SELECT count(*) FROM user_session WHERE session_hash = "$1"',
+	$res = db_query_params ('SELECT count(*) FROM user_session WHERE session_hash =$1',
 				array (session_get_session_cookie_hash($cookie))) ;
 	if (!$res || db_numrows($res) < 1) {
 		db_query_params ('INSERT INTO user_session (session_hash,ip_addr,time,user_id) VALUES ($1,$2,$3,$4)',




More information about the Fusionforge-commits mailing list