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

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Tue Feb 24 11:22:45 CET 2009


Author: aljeux
Date: 2009-02-24 11:22:45 +0100 (Tue, 24 Feb 2009)
New Revision: 7055

Modified:
   trunk/gforge/common/forum/Forum.class.php
Log:
switch from eregi to preg_match

Modified: trunk/gforge/common/forum/Forum.class.php
===================================================================
--- trunk/gforge/common/forum/Forum.class.php	2009-02-24 10:22:39 UTC (rev 7054)
+++ trunk/gforge/common/forum/Forum.class.php	2009-02-24 10:22:45 UTC (rev 7055)
@@ -124,7 +124,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