From: Gilles Grandou Date: Mon, 9 Oct 2017 15:25:24 +0000 (+0200) Subject: allows favicons to be in Windows PC BMP format X-Git-Tag: 17.12~118^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f9ad33c2d8e563c70075e8796b05015fb189262c;p=tt-rss.git allows favicons to be in Windows PC BMP format --- 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 = "";