From: Bryan Tong Minh Date: Tue, 29 Apr 2008 21:50:47 +0000 (+0000) Subject: (bug 11659) Urldecode image names in galleries X-Git-Tag: 1.31.0-rc.0~47998 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=a98aa7ff20a53700e0de7a339a18e26dc8675078;p=lhc%2Fweb%2Fwiklou.git (bug 11659) Urldecode image names in galleries --- 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.