cached_image: remove unnecessary basename()

master
Andrew Dolgov 8 years ago
parent 6358d70d5e
commit 9c7ebaa08c

@ -1054,7 +1054,7 @@ class Handler_Public extends Handler {
$filename = CACHE_DIR . '/images/' . $hash; $filename = CACHE_DIR . '/images/' . $hash;
if (file_exists($filename)) { if (file_exists($filename)) {
header("Content-Disposition: attachment; filename=\"".basename($filename)."\""); header("Content-Disposition: attachment; filename=\"$hash\"");
/* See if we can use X-Sendfile */ /* See if we can use X-Sendfile */
$xsendfile = false; $xsendfile = false;

Loading…
Cancel
Save