From f9ad33c2d8e563c70075e8796b05015fb189262c Mon Sep 17 00:00:00 2001 From: Gilles Grandou Date: Mon, 9 Oct 2017 17:25:24 +0200 Subject: [PATCH] allows favicons to be in Windows PC BMP format --- classes/rssutils.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/classes/rssutils.php b/classes/rssutils.php index d6dfc724..30d35dfa 100644 --- a/classes/rssutils.php +++ b/classes/rssutils.php @@ -1517,6 +1517,10 @@ class RSSUtils { // 0 beshort 0xffd8 JPEG image data //error_log("check_feed_favicon: favicon_url=$favicon_url isa JPG image"); } + elseif (preg_match('/^BM/', $contents)) { + // 0 string BM PC bitmap (OS2, Windows BMP files) + //error_log("check_feed_favicon, favicon_url=$favicon_url isa BMP image"); + } else { //error_log("check_feed_favicon: favicon_url=$favicon_url isa UNKNOWN type"); $contents = ""; -- 2.39.5