[Fusionforge-commits] r9648 - trunk/gforge/common/include

Roland Mas lolando at libremir.placard.fr.eu.org
Thu Apr 29 16:32:17 CEST 2010


Author: lolando
Date: 2010-04-29 16:32:17 +0200 (Thu, 29 Apr 2010)
New Revision: 9648

Modified:
   trunk/gforge/common/include/config.php
Log:
Note to self: PHP, unlike Perl, requires quotes around regexes

Modified: trunk/gforge/common/include/config.php
===================================================================
--- trunk/gforge/common/include/config.php	2010-04-29 14:22:54 UTC (rev 9647)
+++ trunk/gforge/common/include/config.php	2010-04-29 14:32:17 UTC (rev 9648)
@@ -143,7 +143,7 @@
 			if ($file != "." 
 			    && $file != ".."
 			    // Avoid .bak, .old, .dpkg-old and so on
-			    && preg_match (/^[0-9a-zA-Z_-]+$/, $file) {
+			    && preg_match ('/^[0-9a-zA-Z_-]+$/', $file)) {
 				$files[] = "$path/$file" ;
 			}
 		}




More information about the Fusionforge-commits mailing list