(bug 11659) Urldecode image names in galleries
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Tue, 29 Apr 2008 21:50:47 +0000 (21:50 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Tue, 29 Apr 2008 21:50:47 +0000 (21:50 +0000)
RELEASE-NOTES
includes/Parser.php

index 2c6256e..13a86b6 100644 (file)
@@ -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 ===
index a5162d6..669d43d 100644 (file)
@@ -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.