From: Brion Vibber Date: Sun, 30 Apr 2006 05:04:38 +0000 (+0000) Subject: * (bug 5338) Reject extra initial colons in title X-Git-Tag: 1.31.0-rc.0~57313 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=20bac513b64a8a2d33dca5a675369e5be8890be6;p=lhc%2Fweb%2Fwiklou.git * (bug 5338) Reject extra initial colons in title --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 6396481633..250181a563 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/includes/Title.php b/includes/Title.php index 039872793f..c384948a9b 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -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 );