summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-04-08 17:52:53 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-04-08 17:52:53 +0200
commit07a9faf851e3b887899564f854c9933bb0b99140 (patch)
tree1e96a8965d61fa65ca7ad77dd95c81d1fde7816f /lib
parent8af3c9841e7040b91282f24cdccc0e215c52ceef (diff)
Check for fileinfo
https://github.com/FreshRSS/FreshRSS/issues/1402 https://github.com/FreshRSS/FreshRSS/issues/1461
Diffstat (limited to 'lib')
-rw-r--r--lib/Favicon/Favicon.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Favicon/Favicon.php b/lib/Favicon/Favicon.php
index 8571a1b95..4ee42ebbc 100644
--- a/lib/Favicon/Favicon.php
+++ b/lib/Favicon/Favicon.php
@@ -179,7 +179,7 @@ class Favicon
// Sometimes people lie, so check the status.
// And sometimes, it's not even an image. Sneaky bastards!
// If cacheDir isn't writable, that's not our problem
- if ($favicon && is_writable($this->cacheDir) && !$this->checkImageMType($favicon)) {
+ if ($favicon && is_writable($this->cacheDir) && extension_loaded('fileinfo') && !$this->checkImageMType($favicon)) {
$favicon = false;
}