Followup r87711: add ! to the forbidden characters list for module names, per CR
authorRoan Kattouw <catrope@users.mediawiki.org>
Sat, 14 May 2011 09:24:24 +0000 (09:24 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Sat, 14 May 2011 09:24:24 +0000 (09:24 +0000)
includes/resourceloader/ResourceLoader.php

index 4da9e2c..e149141 100644 (file)
@@ -226,8 +226,8 @@ class ResourceLoader {
                }
                
                // Check $name for illegal characters
-               if ( preg_match( '/[|,]/', $name ) ) {
-                       throw new MWException( "ResourceLoader module name '$name' is invalid. Names may not contain pipes (|) or commas (,)" );
+               if ( preg_match( '/[|,!]/', $name ) ) {
+                       throw new MWException( "ResourceLoader module name '$name' is invalid. Names may not contain pipes (|), commas (,) or exclamation marks (!)" );
                }
 
                // Attach module