[Fusionforge-commits] r11315 - trunk/src/www/scm

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Tue Nov 2 12:00:39 CET 2010


Author: aljeux
Date: 2010-11-02 12:00:39 +0100 (Tue, 02 Nov 2010)
New Revision: 11315

Modified:
   trunk/src/www/scm/index.php
Log:
Check group is valid in scm.

Modified: trunk/src/www/scm/index.php
===================================================================
--- trunk/src/www/scm/index.php	2010-11-02 11:00:31 UTC (rev 11314)
+++ trunk/src/www/scm/index.php	2010-11-02 11:00:39 UTC (rev 11315)
@@ -26,6 +26,10 @@
 require_once $gfwww.'scm/include/scm_utils.php';    
 
 $group_id = getIntFromRequest("group_id");
+$group = group_get_object($group_id);
+if (!$group || !is_object($group)) {
+	exit_no_group();
+}
 scm_header(array('title'=>_('SCM Repository'),'group'=>$group_id));
 
 plugin_hook ("blocks", "scm index");




More information about the Fusionforge-commits mailing list