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

Alexandre Neymann neymanna at libremir.placard.fr.eu.org
Wed Dec 9 17:47:58 CET 2009


Author: neymanna
Date: 2009-12-09 17:47:58 +0100 (Wed, 09 Dec 2009)
New Revision: 8481

Modified:
   trunk/gforge/common/forum/Forum.class.php
Log:
use preg_match instead of eregi

Modified: trunk/gforge/common/forum/Forum.class.php
===================================================================
--- trunk/gforge/common/forum/Forum.class.php	2009-12-09 15:07:25 UTC (rev 8480)
+++ trunk/gforge/common/forum/Forum.class.php	2009-12-09 16:47:58 UTC (rev 8481)
@@ -597,7 +597,7 @@
 			$this->setError(_('Forum Description Must Be At Least 10 Characters'));
 			return false;
 		}
-		if (eregi('[^_\.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