[Fusionforge-commits] r8479 - trunk/gforge/common/forum

Alexandre Neymann neymanna at libremir.placard.fr.eu.org
Wed Dec 9 16:05:37 CET 2009


Author: neymanna
Date: 2009-12-09 16:05:37 +0100 (Wed, 09 Dec 2009)
New Revision: 8479

Modified:
   trunk/gforge/common/forum/Forum.class.php
Log:
fix bad pattern in forum name validation

Modified: trunk/gforge/common/forum/Forum.class.php
===================================================================
--- trunk/gforge/common/forum/Forum.class.php	2009-12-09 10:33:31 UTC (rev 8478)
+++ trunk/gforge/common/forum/Forum.class.php	2009-12-09 15:05:37 UTC (rev 8479)
@@ -125,7 +125,7 @@
 			$this->setError(_('Forum Description Must Be At Least 10 Characters'));
 			return false;
 		}
-		if (preg_match('[^_\.0-9a-z-]',$forum_name)) {
+		if (!preg_match('/^([_\.0-9a-z-])*$/',$forum_name)) {
 			$this->setError(_('Illegal Characters in Forum Name'));
 			return false;
 		}




More information about the Fusionforge-commits mailing list