]> git.wh0rd.org Git - tt-rss.git/commitdiff
allows favicons to be in Windows PC BMP format
authorGilles Grandou <gilles@grandou.net>
Mon, 9 Oct 2017 15:25:24 +0000 (17:25 +0200)
committerGilles Grandou <gilles@grandou.net>
Mon, 9 Oct 2017 20:58:00 +0000 (22:58 +0200)
classes/rssutils.php

index d6dfc724e54d69b0756b64f45f06fb04f9c2fb29..30d35dfae6cbad6cc374d76b41b298d16b5dd62a 100644 (file)
@@ -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 = "";