* (bug 5338) Reject extra initial colons in title
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 30 Apr 2006 05:04:38 +0000 (05:04 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 30 Apr 2006 05:04:38 +0000 (05:04 +0000)
RELEASE-NOTES
includes/Title.php

index 6396481..250181a 100644 (file)
@@ -154,6 +154,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 5377) Do not auto-login when creating an account as another user
 * (bug 5284) Special redirect pages should remember parameters
 * Suppress 7za output on dumpBackup
+* (bug 5338) Reject extra initial colons in title
 
 
 == Compatibility ==
index 0398727..c384948 100644 (file)
@@ -1517,6 +1517,11 @@ class Title {
                        return false;
                }
 
+               // Any remaining initial :s are illegal.
+               if ( ':' == $t{0} ) {
+                       return false;
+               }
+               
                # Fill fields
                $this->mDbkeyform = $t;
                $this->mUrlform = wfUrlencode( $t );