aboutsummaryrefslogtreecommitdiff
path: root/p/f.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-07-17 17:33:17 +0200
committerGravatar GitHub <noreply@github.com> 2024-07-17 17:33:17 +0200
commit783fe19baa0c4d187a318c4fdec8b89e217a26aa (patch)
tree0a02b187a65113bc4fc120020388eba331733acf /p/f.php
parentb92b80d12484695b762e85f32e6d23303e62a84b (diff)
Remove dependency to exif extension (#6624)
* Remove dependency to exit extension fix https://github.com/FreshRSS/FreshRSS/issues/6573 * Fix return
Diffstat (limited to 'p/f.php')
-rw-r--r--p/f.php10
1 files changed, 1 insertions, 9 deletions
diff --git a/p/f.php b/p/f.php
index 69dc418c9..6514c1045 100644
--- a/p/f.php
+++ b/p/f.php
@@ -49,15 +49,7 @@ if ($ico_mtime == false || $ico_mtime < $txt_mtime || ($ico_mtime < time() - (mt
}
if (!httpConditional($ico_mtime, mt_rand(14, 21) * 86400, 2)) {
- $ico_content_type = 'image/x-icon';
- if (function_exists('mime_content_type')) {
- $ico_content_type = mime_content_type($ico);
- }
- switch ($ico_content_type) {
- case 'image/svg':
- $ico_content_type = 'image/svg+xml';
- break;
- }
+ $ico_content_type = contentType($ico);
header('Content-Type: ' . $ico_content_type);
header('Content-Disposition: inline; filename="' . $id . '.ico"');
readfile($ico);