From: Brion Vibber Date: Fri, 4 May 2007 14:30:02 +0000 (+0000) Subject: * (bug 9780) Fix normalization of titles with initial colon followed by whitespace X-Git-Tag: 1.31.0-rc.0~53090 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=a641202f4026d8104b2635ae7c3cd56d052b7258;p=lhc%2Fweb%2Fwiklou.git * (bug 9780) Fix normalization of titles with initial colon followed by whitespace --- diff --git a/includes/Title.php b/includes/Title.php index 531944aae5..0ff2e8073b 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1637,6 +1637,7 @@ class Title { if ( ':' == $dbkey{0} ) { $this->mNamespace = NS_MAIN; $dbkey = substr( $dbkey, 1 ); # remove the colon but continue processing + $dbkey = trim( $dbkey, '_' ); # remove any subsequent whitespace } # Namespace or interwiki prefix