summaryrefslogtreecommitdiff
path: root/classes/handler/public.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-08-17 10:11:53 +0300
committerAndrew Dolgov <[email protected]>2018-08-17 10:11:53 +0300
commit04ad631a08e33c30ba506ed07e93f1815434018d (patch)
tree074baeabb80f67ab631adcca3d3ed80c9b47c7f9 /classes/handler/public.php
parent611aeb71970b73c070563079b7cc694e191eb358 (diff)
parent3a46529a7329574efd694a6e9fe2828614e7ee2c (diff)
Merge branch 'master' of git.fakecake.org:tt-rss
Diffstat (limited to 'classes/handler/public.php')
-rwxr-xr-x[-rw-r--r--]classes/handler/public.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php
index 8440bc355..e892a9797 100644..100755
--- a/classes/handler/public.php
+++ b/classes/handler/public.php
@@ -934,17 +934,17 @@ class Handler_Public extends Handler {
}
function cached_url() {
- @$hash = basename($_GET['hash']);
+ @$req_filename = basename($_GET['hash']);
// we don't need an extension to find the file, hash is a complete URL
- $hash = preg_replace("/\.[^\.]*$/", "", $hash);
+ $hash = preg_replace("/\.[^\.]*$/", "", $req_filename);
if ($hash) {
$filename = CACHE_DIR . '/images/' . $hash;
if (file_exists($filename)) {
- header("Content-Disposition: inline; filename=\"$hash\"");
+ header("Content-Disposition: inline; filename=\"$req_filename\"");
send_local_file($filename);