diff options
author | fox <[email protected]> | 2020-11-05 15:40:42 +0000 |
---|---|---|
committer | Gogs <[email protected]> | 2020-11-05 15:40:42 +0000 |
commit | 242aa6e4114701a1d31d487657e8f50dd57de7c5 (patch) | |
tree | ae3282c0c52869e4199d1e1e1f5463f17f7ddfeb /classes/diskcache.php | |
parent | a90d42a556d01bb7376538eb2d5db7d5e52edaf2 (diff) | |
parent | 01c0d4bbfd2cdc039c28d79debb2a3959d3b2631 (diff) |
Merge branch 'allow-audio-cache' of johnjaylward/tt-rss into master
Diffstat (limited to 'classes/diskcache.php')
-rw-r--r-- | classes/diskcache.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/diskcache.php b/classes/diskcache.php index 6a8aa89c4..c56dc6f14 100644 --- a/classes/diskcache.php +++ b/classes/diskcache.php @@ -384,7 +384,7 @@ class DiskCache { $mimetype_blacklist = [ "image/svg+xml" ]; /* only serve video and images */ - if (!preg_match("/(image|video)\//", $mimetype) || in_array($mimetype, $mimetype_blacklist)) { + if (!preg_match("/(image|audio|video)\//", $mimetype) || in_array($mimetype, $mimetype_blacklist)) { http_response_code(400); header("Content-type: text/plain"); |