plugins/SpecialPageFuncs.php
changeset 204 473cc747022a
parent 194 bf0fdec102e9
child 221 e5302cb1945c
child 285 7846d45bd250
--- a/plugins/SpecialPageFuncs.php	Sat Oct 20 21:44:13 2007 -0400
+++ b/plugins/SpecialPageFuncs.php	Fri Oct 26 19:28:54 2007 -0400
@@ -109,6 +109,17 @@
       
       exit;
     }
+    if ( substr($urlname, 0, 8) == 'Project:' )
+    {
+      $template->header();
+      
+      echo '<h3>The page could not be created.</h3><p>The page title can\'t start with "Project:" because this prefix is reserved for a parser shortcut.</p>';
+      
+      $template->footer();
+      $db->close();
+      
+      exit;
+    }
     
     $tn = $paths->nslist[$_POST['namespace']] . $urlname;
     if ( isset($paths->pages[$tn]) )