From: Leon Weber Date: Sat, 8 Nov 2008 23:20:44 +0000 (+0000) Subject: * (bug 5530) Consistency between character encoding in {{PAGENAMEE}}, {{SUBPAGENAMEE... X-Git-Tag: 1.31.0-rc.0~44394 X-Git-Url: http://git.cyclocoop.org/clavettes/images/siteon3.jpg?a=commitdiff_plain;h=5236cfb288ceaac8b6b8f4c66eab29edb5bb02fb;p=lhc%2Fweb%2Fwiklou.git * (bug 5530) Consistency between character encoding in {{PAGENAMEE}}, {{SUBPAGENAMEE}} and {{FULLPAGENAMEE}}, patch by HardDisk --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 1350b7013b..6e33328455 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -330,6 +330,8 @@ The following extensions are migrated into MediaWiki 1.14: * (bug 8345) Don't autosummarize where a redirect was left unchanged * Made thumb caching in ForeignApiFile objects integrated with normal thumb path naming (/thumbs/hash/file), retired 'apiThumbCacheDir' as a result. +* (bug 5530) Consistency between character encoding in {{PAGENAMEE}}, + {{SUBPAGENAMEE}} and {{FULLPAGENAMEE}} === API changes in 1.14 === diff --git a/includes/Title.php b/includes/Title.php index 1b2b558d7e..8945c31340 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -638,7 +638,6 @@ class Title { public function getSubpageUrlForm() { $text = $this->getSubpageText(); $text = wfUrlencode( str_replace( ' ', '_', $text ) ); - $text = str_replace( '%28', '(', str_replace( '%29', ')', $text ) ); # Clean up the URL; per below, this might not be safe return( $text ); } @@ -648,14 +647,7 @@ class Title { */ public function getPrefixedURL() { $s = $this->prefix( $this->mDbkeyform ); - $s = str_replace( ' ', '_', $s ); - - $s = wfUrlencode ( $s ) ; - - # Cleaning up URL to make it look nice -- is this safe? - $s = str_replace( '%28', '(', $s ); - $s = str_replace( '%29', ')', $s ); - + $s = wfUrlencode( str_replace( ' ', '_', $s ) ); return $s; }