diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2010-11-10 22:48:16 +0100 |
|---|---|---|
| committer | Andrew Dolgov <fox@madoka.volgo-balt.ru> | 2010-11-11 09:43:18 +0300 |
| commit | 24eb4c780f531363e90fe2d8248d50189dcb6b38 (patch) | |
| tree | a789fa8395750b45b5bf7bc08e6f7922b58040c2 /functions.php | |
| parent | 444537736be8625a5f2ba15de6c284d91666c011 (diff) | |
add unit tests for url_is_html and fix a bug with UPPERCASE <HTML> in it
Diffstat (limited to 'functions.php')
| -rw-r--r-- | functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/functions.php b/functions.php index e73c0d16e..96fa19224 100644 --- a/functions.php +++ b/functions.php @@ -6961,8 +6961,8 @@ */ function url_is_html($url) { $content = substr(fetch_file_contents($url, false), 0, 1000); - if (strpos($content, '<html>') === false - && strpos($content, '<html ') === false + if (stripos($content, '<html>') === false + && stripos($content, '<html ') === false ) { return false; } |