From 73a75dbc51ebba39554aa31661e5e130eadeb717 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 30 Apr 2008 22:05:54 +0000 Subject: [PATCH] Revert r34029 - "(bug 11659) Urldecode image names in galleries" The indiscriminate use of urldecode() here breaks image names containing a + character. --- RELEASE-NOTES | 1 - includes/Parser.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index e634c7cdfd..b101abf892 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -224,7 +224,6 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 13866) skins/common/shared.css - invalid attribute fixing * Hide edit section links on Special:Undelete * (bug 13860) Fix "Justify paragraphs" option for Modern skin -* (bug 11659) Urldecode image names in galleries * (bug 13168) accessibility links in Modern skin link to wrong anchor id * (bug 13185) No line break after 'subpages' class in Modern skin * (bug 13583) No "poweredby" in Modern skin diff --git a/includes/Parser.php b/includes/Parser.php index 669d43d682..a5162d6aa7 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -4337,7 +4337,7 @@ class Parser if ( count( $matches ) == 0 ) { continue; } - $tp = Title::newFromText( urldecode( $matches[1] ) ); + $tp = Title::newFromText( $matches[1] ); $nt =& $tp; if( is_null( $nt ) ) { # Bogus title. Ignore these so we don't bomb out later. -- 2.20.1