X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=thumb.php;h=5fc444624868bd7d20d9ffb9b2ace5b32a1f4397;hb=3d97704f91f29ebb63d4111bf1d01feb4d89e65b;hp=58a8194d00dbd20f50d6605a5c747eb4ca798982;hpb=e6e0d51edfc3f42f3bf6f682bee82a5d93246e4f;p=lhc%2Fweb%2Fwiklou.git diff --git a/thumb.php b/thumb.php index 58a8194d00..5fc4446248 100644 --- a/thumb.php +++ b/thumb.php @@ -71,10 +71,9 @@ function wfThumbHandle404() { } # Just get the URI path (REDIRECT_URL/REQUEST_URI is either a full URL or a path) if ( substr( $uriPath, 0, 1 ) !== '/' ) { - $bits = wfParseUrl( $uriPath ); - if ( $bits && isset( $bits['path'] ) ) { - $uriPath = $bits['path']; - } else { + $uri = new Uri( $uriPath ); + $uriPath = $uri->getPath(); + if ( $uriPath === null ) { wfThumbError( 404, 'The source file for the specified thumbnail does not exist.' ); return; }