[evolvis-commits] r13263: Merged from 4.8: stripslashes in db_qery_params if magic_quotes are on

mirabilos at evolvis.org mirabilos at evolvis.org
Mon Feb 28 02:25:25 CET 2011


Author: mirabilos
Date: 2011-02-28 02:25:25 +0100 (Mon, 28 Feb 2011)
New Revision: 13263

Modified:
   trunk/gforge_base/evolvisforge-5.1/gforge/common/include/database-pgsql.php
Log:
Merged from 4.8: stripslashes in db_qery_params if magic_quotes are on

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/common/include/database-pgsql.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/common/include/database-pgsql.php	2011-02-28 01:25:22 UTC (rev 13262)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/common/include/database-pgsql.php	2011-02-28 01:25:25 UTC (rev 13263)
@@ -147,6 +147,9 @@
 	global $QUERY_COUNT;
 	$QUERY_COUNT++;
 
+	if (get_magic_quotes_gpc() == true) {
+		$params = array_map('stripslashes',$params);
+	}
 	if (!$limit || !is_numeric($limit) || $limit < 0) {
 		$limit=0;
 	}



More information about the evolvis-commits mailing list