# HG changeset patch
# User Dan
# Date 1200947930 18000
# Node ID 2220bab5c78431334bc479bdf1e6f516bfa924e5
# Parent 35ed07abc99e1abab6d05e2855a5d901b107e7ae# Parent 02d315d1cc58feaeb2c881d649a01486068e76e3
Re-merged rev 35ed07abc99e, apparently didn't go through the first time.
diff -r 02d315d1cc58 -r 2220bab5c784 includes/pageutils.php
--- 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 'Notice: PageUtils::createPage: Name contains invalid characters
';
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 );