From a98aa7ff20a53700e0de7a339a18e26dc8675078 Mon Sep 17 00:00:00 2001 From: Bryan Tong Minh Date: Tue, 29 Apr 2008 21:50:47 +0000 Subject: [PATCH] (bug 11659) Urldecode image names in galleries --- RELEASE-NOTES | 1 + includes/Parser.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 2c6256e093..13a86b69fc 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -223,6 +223,7 @@ 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 === API changes in 1.13 === diff --git a/includes/Parser.php b/includes/Parser.php index a5162d6aa7..669d43d682 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -4337,7 +4337,7 @@ class Parser if ( count( $matches ) == 0 ) { continue; } - $tp = Title::newFromText( $matches[1] ); + $tp = Title::newFromText( urldecode( $matches[1] ) ); $nt =& $tp; if( is_null( $nt ) ) { # Bogus title. Ignore these so we don't bomb out later. -- 2.20.1