summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-02-04 12:02:17 +0300
committerAndrew Dolgov <[email protected]>2017-02-04 12:02:17 +0300
commit9c7ebaa08cb7f2407319aef5da39d9f30ad6b9fc (patch)
treedab995fdb4813f39daf601de29887da4b47c1320 /classes
parent6358d70d5e1b0954fdc9e7f7481950ef59446036 (diff)
cached_image: remove unnecessary basename()
Diffstat (limited to 'classes')
-rw-r--r--classes/handler/public.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php
index 0fc8476c7..459a535a4 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;