From f0854fdec506a219e5c92c2453fcb2eff76a8dc9 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sun, 8 Jul 2018 03:46:03 +0200 Subject: [PATCH] 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()]. --- thumb/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; -- 2.30.0