From 5a4074a9f8b95d58a25aa630ab0acaeb00cf37cd Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Thu, 9 Jul 2015 13:39:07 +0200 Subject: [PATCH] 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. --- include/functions2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("/