summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2015-07-09 15:03:47 +0300
committerAndrew Dolgov <[email protected]>2015-07-09 15:03:47 +0300
commit75112f78c4cdc458dbcd27fa31cb44c2914efc10 (patch)
tree9f2d6fa0630e057b8fb7db68812fca648a7816d2
parent12d880d77a166e87aebe49b17e0247c06cec6024 (diff)
parent5a4074a9f8b95d58a25aa630ab0acaeb00cf37cd (diff)
Merge pull request #467 from cweiske/fix-html-detection
Check for HTML in the first 100 bytes.
-rw-r--r--include/functions2.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions2.php b/include/functions2.php
index e3b6e535c..133352f75 100644
--- a/include/functions2.php
+++ b/include/functions2.php
@@ -1792,7 +1792,7 @@
}
function is_html($content) {
- return preg_match("/<html|DOCTYPE html/i", substr($content, 0, 20)) !== 0;
+ return preg_match("/<html|DOCTYPE html/i", substr($content, 0, 100)) !== 0;
}
function url_is_html($url, $login = false, $pass = false) {