summaryrefslogtreecommitdiff
path: root/include/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php
index 0e98b4a54..9edd2dd2c 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -4707,7 +4707,7 @@
}
function is_html($content) {
- return preg_match("/<html|DOCTYPE html/i", $content) !== 0;
+ return preg_match("/<html|DOCTYPE html/i", substr($content, 0, 20)) !== 0;
}
function url_is_html($url, $login = false, $pass = false) {