[Fusionforge-commits] r12801 - branches/Branch_5_1/src/common/include

Alain Peyrat aljeux at fusionforge.org
Wed Mar 16 19:15:34 CET 2011


Author: aljeux
Date: 2011-03-16 19:15:34 +0100 (Wed, 16 Mar 2011)
New Revision: 12801

Modified:
   branches/Branch_5_1/src/common/include/pre.php
Log:
Treat $feedback $error_msg & $warning_msg inside pre.php to fix misses once for all

Modified: branches/Branch_5_1/src/common/include/pre.php
===================================================================
--- branches/Branch_5_1/src/common/include/pre.php	2011-03-16 18:15:25 UTC (rev 12800)
+++ branches/Branch_5_1/src/common/include/pre.php	2011-03-16 18:15:34 UTC (rev 12801)
@@ -21,6 +21,11 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
+// Declare and init variables to store messages
+$feedback = '';
+$warning_msg = '';
+$error_msg = '';
+
 require_once $gfcommon.'include/escapingUtils.php';
 require_once $gfcommon.'include/config.php';
 
@@ -141,10 +146,6 @@
 // Get constants used for flags or status
 require $gfcommon.'include/constants.php';
 
-// Declare and init variables to store messages
-$feedback = '';
-$warning_msg = '';
-$error_msg = '';
 
 // Base error library for new objects
 require_once $gfcommon.'include/Error.class.php';
@@ -249,6 +250,10 @@
 
 setup_gettext_from_context();
 
+$feedback = htmlspecialchars(getStringFromRequest('feedback', $feedback));
+$error_msg = htmlspecialchars(getStringFromRequest('error_msg', $error_msg));
+$warning_msg = htmlspecialchars(getStringFromRequest('warning_msg', $warning_msg));
+
 /*
 RESERVED VARIABLES
 




More information about the Fusionforge-commits mailing list