]> git.wh0rd.org Git - tt-rss.git/commitdiff
cached_image: remove unnecessary basename()
authorAndrew Dolgov <noreply@fakecake.org>
Sat, 4 Feb 2017 09:02:17 +0000 (12:02 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Sat, 4 Feb 2017 09:02:17 +0000 (12:02 +0300)
classes/handler/public.php

index 0fc8476c7bd012f01348cb58a5540fa71cd9878d..459a535a40cf880b776f11e4cc59ef3e4fff7fdb 100644 (file)
@@ -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;