Re-merged rev 35ed07abc99e, apparently didn't go through the first time.
authorDan
Mon, 21 Jan 2008 15:38:50 -0500
changeset 363 2220bab5c784
parent 361 35ed07abc99e (diff)
parent 362 02d315d1cc58 (current diff)
child 364 390eb356cd49
Re-merged rev 35ed07abc99e, apparently didn't go through the first time.
--- a/includes/pageutils.php	Mon Jan 21 15:37:28 2008 -0500
+++ b/includes/pageutils.php	Mon Jan 21 15:38:50 2008 -0500
@@ -439,16 +439,20 @@
       return 'The prefix "Project:" is reserved for a parser shortcut; if a page was created using this prefix, it would not be possible to link to it.';
     }
     
-    $page_id = dirtify_page_id($page_id);
-    
-    if ( !$name )
-      $name = str_replace('_', ' ', $page_id);
+    /*
+    // Dunno why this was here. Enano can handle more flexible names than this...
     $regex = '#^([A-z0-9 _\-\.\/\!\@\(\)]*)$#is';
     if(!preg_match($regex, $name))
     {
       //echo '<b>Notice:</b> PageUtils::createPage: Name contains invalid characters<br />';
       return 'Name contains invalid characters';
     }
+    */
+    
+    $page_id = dirtify_page_id($page_id);
+    
+    if ( !$name )
+      $name = str_replace('_', ' ', $page_id);
     
     $page_id = sanitize_page_id( $page_id );