From 24eb4c780f531363e90fe2d8248d50189dcb6b38 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Wed, 10 Nov 2010 22:48:16 +0100 Subject: add unit tests for url_is_html and fix a bug with UPPERCASE in it --- functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'functions.php') 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, '') === false - && strpos($content, '') === false + && stripos($content, '