From: Mischa POSLAWSKY Date: Sun, 8 Jul 2018 01:46:03 +0000 (+0200) Subject: thumb: output results of existing target X-Git-Tag: v3.5~20 X-Git-Url: http://git.shiar.nl/minimedit.git/commitdiff_plain/f0854fdec506a219e5c92c2453fcb2eff76a8dc9 thumb: output results of existing target In case the script gets called instead of httpd/file cache, the found target should still be returned. Broken since commit v3.2-15-gf08646f0f4 (2018-07-07) [thumb: decide on cache location in mkthumb()]. --- diff --git a/thumb/index.php b/thumb/index.php index 1d36948..d662b5f 100644 --- a/thumb/index.php +++ b/thumb/index.php @@ -41,7 +41,7 @@ function mkthumb($source, $width, $height) $backend = $_GET['backend']; } elseif (file_exists($target)) { - return; + return $target; } elseif (extension_loaded('gd')) { $backend = 'gd';