diff options
author | Andrew Dolgov <[email protected]> | 2017-02-04 12:02:17 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-02-04 12:02:17 +0300 |
commit | 9c7ebaa08cb7f2407319aef5da39d9f30ad6b9fc (patch) | |
tree | dab995fdb4813f39daf601de29887da4b47c1320 | |
parent | 6358d70d5e1b0954fdc9e7f7481950ef59446036 (diff) |
cached_image: remove unnecessary basename()
-rw-r--r-- | classes/handler/public.php | 2 |
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; |