plugins/SpecialPageFuncs.php
changeset 194 bf0fdec102e9
parent 192 9237767a23ae
child 221 e5302cb1945c
child 285 7846d45bd250
--- a/plugins/SpecialPageFuncs.php	Sat Oct 20 11:11:40 2007 -0400
+++ b/plugins/SpecialPageFuncs.php	Sat Oct 20 21:46:05 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]) )