FU r105512: urldecode() the file and thumb name in wfExtractThumbParams() for 404...
authorAaron Schulz <aaron@users.mediawiki.org>
Thu, 22 Dec 2011 00:43:11 +0000 (00:43 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Thu, 22 Dec 2011 00:43:11 +0000 (00:43 +0000)
thumb.php

index 15574b8..51f7ec6 100644 (file)
--- a/thumb.php
+++ b/thumb.php
@@ -233,6 +233,8 @@ function wfExtractThumbParams( $uri ) {
        // Check if this is a valid looking thumbnail request...
        if ( preg_match( $thumbUrlRegex, $uri, $matches ) ) {
                list( /* all */, $archOrTemp, $filename, $thumbname ) = $matches;
+               $filename = urldecode( $filename );
+               $thumbname = urldecode( $thumbname );
 
                $params = array( 'f' => $filename );
                if ( $archOrTemp == '/archive' ) {