Commit 9c7ebaa0 authored by Andrew Dolgov's avatar Andrew Dolgov

cached_image: remove unnecessary basename()

parent 6358d70d
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment