From: Aaron Schulz Date: Fri, 10 Feb 2012 01:35:13 +0000 (+0000) Subject: r111076: url decode the 'rel404' path...*ahem*. Archived files and files with special... X-Git-Tag: 1.31.0-rc.0~24803 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/%7B%24admin_url%7Dmembres/cotisations/%40version%40?a=commitdiff_plain;h=30ed85146a4c97fff76babc2262bda8393c9a6aa;p=lhc%2Fweb%2Fwiklou.git r111076: url decode the 'rel404' path...*ahem*. Archived files and files with special chars are otherwise broken. --- 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__ );