From: Andrew Dolgov Date: Sat, 4 Feb 2017 09:02:17 +0000 (+0300) Subject: cached_image: remove unnecessary basename() X-Git-Tag: 17.4~60 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=9c7ebaa08cb7f2407319aef5da39d9f30ad6b9fc;p=tt-rss.git cached_image: remove unnecessary basename() --- 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;