[Fusionforge-commits] r8480 - branches/Branch_4_8/gforge/common/forum

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


Author: neymanna
Date: 2009-12-09 16:07:25 +0100 (Wed, 09 Dec 2009)
New Revision: 8480

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

Modified: branches/Branch_4_8/gforge/common/forum/Forum.class.php
===================================================================
--- branches/Branch_4_8/gforge/common/forum/Forum.class.php	2009-12-09 15:05:37 UTC (rev 8479)
+++ branches/Branch_4_8/gforge/common/forum/Forum.class.php	2009-12-09 15:07:25 UTC (rev 8480)
@@ -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