mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 07:05:56 +00:00
cached_image: remove unnecessary basename()
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user