mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 07:05:56 +00:00
image cache: send files as content-disposition: attachment; add .png suffix to image urls
This commit is contained in:
@@ -1051,9 +1051,11 @@ class Handler_Public extends Handler {
|
||||
|
||||
if ($hash) {
|
||||
|
||||
$filename = CACHE_DIR . '/images/' . $hash . '.png';
|
||||
$filename = CACHE_DIR . '/images/' . $hash;
|
||||
|
||||
if (file_exists($filename)) {
|
||||
header("Content-Disposition: attachment; filename=\"".basename($filename)."\"");
|
||||
|
||||
/* See if we can use X-Sendfile */
|
||||
$xsendfile = false;
|
||||
if (function_exists('apache_get_modules') &&
|
||||
|
||||
Reference in New Issue
Block a user