From 20bac513b64a8a2d33dca5a675369e5be8890be6 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 30 Apr 2006 05:04:38 +0000 Subject: [PATCH] * (bug 5338) Reject extra initial colons in title --- RELEASE-NOTES | 1 + includes/Title.php | 5 +++++ 2 files changed, 6 insertions(+) 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 ); -- 2.20.1