r35683 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r35682‎ | r35683 | r35684 >
Date:18:31, 1 June 2008
Author:btongminh
Status:old
Tags:
Comment:
(bug 11659) Urldecode image names in galleries (fixed in a similar way as done for regular links)
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/Parser.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Parser.php
@@ -4366,6 +4366,9 @@
43674367 if ( count( $matches ) == 0 ) {
43684368 continue;
43694369 }
 4370+
 4371+ if ( strpos( $matches[0], '%' ) !== false )
 4372+ $matches[1] = urldecode( $matches[1] );
43704373 $tp = Title::newFromText( $matches[1] );
43714374 $nt =& $tp;
43724375 if( is_null( $nt ) ) {
Index: trunk/phase3/RELEASE-NOTES
@@ -318,6 +318,7 @@
319319 * (bug 14370) When a grouppage-x message does not exist the entry on the
320320 ListGroupRights special page links to the main namespace page not the project
321321 namespace page.
 322+* (bug 11659) Urldecode image names in galleries
322323
323324 === API changes in 1.13 ===
324325

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r34029(bug 11659) Urldecode image names in galleriesbtongminh21:50, 29 April 2008
r34064Revert r34029 - "(bug 11659) Urldecode image names in galleries"...brion22:05, 30 April 2008

Status & tagging log