From 9c7ebaa08cb7f2407319aef5da39d9f30ad6b9fc Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 4 Feb 2017 12:02:17 +0300 Subject: [PATCH] cached_image: remove unnecessary basename() --- classes/handler/public.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/handler/public.php b/classes/handler/public.php index 0fc8476c..459a535a 100644 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -1054,7 +1054,7 @@ class Handler_Public extends Handler { $filename = CACHE_DIR . '/images/' . $hash; if (file_exists($filename)) { - header("Content-Disposition: attachment; filename=\"".basename($filename)."\""); + header("Content-Disposition: attachment; filename=\"$hash\""); /* See if we can use X-Sendfile */ $xsendfile = false; -- 2.39.5