From: Christian Weiske Date: Thu, 9 Jul 2015 11:39:07 +0000 (+0200) Subject: Check for HTML in the first 100 bytes. X-Git-Tag: 16.3~236^2^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=5a4074a9f8b95d58a25aa630ab0acaeb00cf37cd;p=tt-rss.git Check for HTML in the first 100 bytes. Some HTML pages have an XML header (XHTML), which alone is nearly 50 bytes. Thus we need to check for the HTML or doctype tags in the first 100 bytes. --- diff --git a/include/functions2.php b/include/functions2.php index e3b6e535..133352f7 100644 --- a/include/functions2.php +++ b/include/functions2.php @@ -1792,7 +1792,7 @@ } function is_html($content) { - return preg_match("/