aboutsummaryrefslogtreecommitdiff
path: root/p/ext.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2019-10-31 18:15:47 +0100
committerGravatar GitHub <noreply@github.com> 2019-10-31 18:15:47 +0100
commit3aa66f317b496ccd9a2df914bbc747c52081a7ad (patch)
tree6a3f3f74899801abdca00546e213dfdc141c53cf /p/ext.php
parent82611c9622ed23b0e9fcf5f9f651ddffa1fd7706 (diff)
parentfcae48f313d399050cb15f37a8a73ae52fc67796 (diff)
Merge pull request #2599 from FreshRSS/dev1.15.0
FreshRSS 1.15
Diffstat (limited to 'p/ext.php')
-rw-r--r--p/ext.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/p/ext.php b/p/ext.php
index 1b123f47d..3035aae7d 100644
--- a/p/ext.php
+++ b/p/ext.php
@@ -59,6 +59,23 @@ case 'js':
header('Content-Type: application/javascript; charset=UTF-8');
header('Content-Disposition: inline; filename="' . $file_name . '"');
break;
+case 'png':
+ header('Content-Type: image/png');
+ header('Content-Disposition: inline; filename="' . $file_name . '"');
+ break;
+case 'jpeg':
+case 'jpg':
+ header('Content-Type: image/jpeg');
+ header('Content-Disposition: inline; filename="' . $file_name . '"');
+ break;
+case 'gif':
+ header('Content-Type: image/gif');
+ header('Content-Disposition: inline; filename="' . $file_name . '"');
+ break;
+case 'svg':
+ header('Content-Type: image/svg+xml');
+ header('Content-Disposition: inline; filename="' . $file_name . '"');
+ break;
default:
header('HTTP/1.1 400 Bad Request');
die();