From 30ed85146a4c97fff76babc2262bda8393c9a6aa Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 10 Feb 2012 01:35:13 +0000 Subject: [PATCH] r111076: url decode the 'rel404' path...*ahem*. Archived files and files with special chars are otherwise broken. --- thumb.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thumb.php b/thumb.php index 1890df2a16..1d2a576b6e 100644 --- a/thumb.php +++ b/thumb.php @@ -178,7 +178,7 @@ function wfStreamThumb( array $params ) { // Check that the zone relative path matches up so squid caches won't pick // up thumbs that would not be purged on source file deletion (bug 34231). if ( isset( $params['rel404'] ) // thumbnail was handled via 404 - && $params['rel404'] !== $img->getThumbRel( $thumbName ) ) + && urldecode( $params['rel404'] ) !== $img->getThumbRel( $thumbName ) ) { wfThumbError( 404, 'The source file for the specified thumbnail does not exist.' ); wfProfileOut( __METHOD__ ); -- 2.20.1