[Fusionforge-commits] r11039 - trunk/src/www/reporting

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Mon Oct 18 18:38:39 CEST 2010


Author: aljeux
Date: 2010-10-18 18:38:38 +0200 (Mon, 18 Oct 2010)
New Revision: 11039

Modified:
   trunk/src/www/reporting/projectact.php
   trunk/src/www/reporting/siteact_graph.php
   trunk/src/www/reporting/useract.php
   trunk/src/www/reporting/useract_graph.php
Log:
Filter arguments for area in reporting.

Modified: trunk/src/www/reporting/projectact.php
===================================================================
--- trunk/src/www/reporting/projectact.php	2010-10-18 16:38:32 UTC (rev 11038)
+++ trunk/src/www/reporting/projectact.php	2010-10-18 16:38:38 UTC (rev 11039)
@@ -35,7 +35,7 @@
 }
 
 $g_id = getIntFromRequest('g_id');
-$area = getStringFromRequest('area');
+$area = getFilteredStringFromRequest('area', '/^[a-z]+$/');
 $SPAN = getIntFromRequest('SPAN', 1);
 $start = getIntFromRequest('start');
 $end = getIntFromRequest('end');

Modified: trunk/src/www/reporting/siteact_graph.php
===================================================================
--- trunk/src/www/reporting/siteact_graph.php	2010-10-18 16:38:32 UTC (rev 11038)
+++ trunk/src/www/reporting/siteact_graph.php	2010-10-18 16:38:38 UTC (rev 11039)
@@ -30,7 +30,7 @@
 
 session_require_global_perm ('forge_stats', 'read') ;
 
-$area = getStringFromRequest('area');
+$area = getFilteredStringFromRequest('area', '/^[a-z]+$/');
 $SPAN = getIntFromRequest('SPAN');
 $start = getIntFromRequest('start');
 $end = getIntFromRequest('end');

Modified: trunk/src/www/reporting/useract.php
===================================================================
--- trunk/src/www/reporting/useract.php	2010-10-18 16:38:32 UTC (rev 11038)
+++ trunk/src/www/reporting/useract.php	2010-10-18 16:38:38 UTC (rev 11039)
@@ -36,7 +36,7 @@
 
 $sw = getStringFromRequest('sw');
 $dev_id = getIntFromRequest('dev_id');
-$area = getStringFromRequest('area');
+$area = getFilteredStringFromRequest('area', '/^[a-z]+$/');
 $SPAN = getIntFromRequest('SPAN');
 $start = getIntFromRequest('start');
 $end = getIntFromRequest('end');

Modified: trunk/src/www/reporting/useract_graph.php
===================================================================
--- trunk/src/www/reporting/useract_graph.php	2010-10-18 16:38:32 UTC (rev 11038)
+++ trunk/src/www/reporting/useract_graph.php	2010-10-18 16:38:38 UTC (rev 11039)
@@ -34,7 +34,7 @@
 $SPAN = getIntFromRequest('SPAN');
 $start = getIntFromRequest('start');
 $end = getIntFromRequest('end');
-$area = getStringFromRequest('area');
+$area = getFilteredStringFromRequest('area', '/^[a-z]+$/');
 
 //
 //	Create Report




More information about the Fusionforge-commits mailing list