소스 검색

Check for fileinfo

https://github.com/FreshRSS/FreshRSS/issues/1402
https://github.com/FreshRSS/FreshRSS/issues/1461
Alexandre Alapetite 9 년 전
부모
커밋
07a9faf851
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/Favicon/Favicon.php

+ 1 - 1
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;
         }