[Fusionforge-commits] r10449 - branches/Branch_5_0/gforge/www/news/admin

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Sun Sep 12 12:35:27 CEST 2010


Author: aljeux
Date: 2010-09-12 12:35:27 +0200 (Sun, 12 Sep 2010)
New Revision: 10449

Modified:
   branches/Branch_5_0/gforge/www/news/admin/index.php
Log:
Revert "fix quotes in details" to fix [#192] FF 5.0.1 : News 's message

This reverts commit 0cb618f62090ca7eec8364198476384bcb5c1704.

Modified: branches/Branch_5_0/gforge/www/news/admin/index.php
===================================================================
--- branches/Branch_5_0/gforge/www/news/admin/index.php	2010-09-10 17:18:35 UTC (rev 10448)
+++ branches/Branch_5_0/gforge/www/news/admin/index.php	2010-09-12 10:35:27 UTC (rev 10449)
@@ -81,7 +81,7 @@
 			$sanitizer = new TextSanitizer();
 			$details = $sanitizer->SanitizeHtml($details);
 			$result = db_query_params("UPDATE news_bytes SET is_approved=$1, summary=$2, 
-details=$3 WHERE id=$4 AND group_id=$5", array($status, htmlspecialchars($summary), addslashes($details), $id, $group_id));
+details=$3 WHERE id=$4 AND group_id=$5", array($status, htmlspecialchars($summary), $details, $id, $group_id));
 
 			if (!$result || db_affected_rows($result) < 1) {
 				$feedback .= _('Error On Update:');
@@ -200,7 +200,7 @@
 				$sanitizer = new TextSanitizer();
 				$details = $sanitizer->SanitizeHtml($details);
 				$result=db_query_params("UPDATE news_bytes SET is_approved='1', post_date=$1, 
-summary=$2, details=$3 WHERE id=$4", array(time(), htmlspecialchars($summary), addslashes($details), $id));
+summary=$2, details=$3 WHERE id=$4", array(time(), htmlspecialchars($summary), $details, $id));
 				if (!$result || db_affected_rows($result) < 1) {
 					$feedback .= _('Error On Update:');
 				} else {




More information about the Fusionforge-commits mailing list