limit is_html() to only work on the begging of passed string
This commit is contained in:
parent
9a5f5633c0
commit
32b8671144
|
@ -4707,7 +4707,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function is_html($content) {
|
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) {
|
function url_is_html($url, $login = false, $pass = false) {
|
||||||
|
|
Loading…
Reference in New Issue