From c8a0908bdf3c962cc477966b8d807a06ffb37f4d Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 22 Dec 2011 00:43:11 +0000 Subject: [PATCH] FU r105512: urldecode() the file and thumb name in wfExtractThumbParams() for 404 handling as needed. --- thumb.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/thumb.php b/thumb.php index 15574b8438..51f7ec60d6 100644 --- 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' ) { -- 2.20.1