From bcb6b8ee66e0d813ba35fda29d299c7923b2d732 Mon Sep 17 00:00:00 2001 From: wuwx Date: Wed, 12 Mar 2014 19:34:25 +0800 Subject: Check image path is include http:// or https:// --- system/helpers/html_helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/helpers/html_helper.php b/system/helpers/html_helper.php index e229d796e..239f24ccc 100644 --- a/system/helpers/html_helper.php +++ b/system/helpers/html_helper.php @@ -181,7 +181,7 @@ if ( ! function_exists('img')) foreach ($src as $k => $v) { - if ($k === 'src' && strpos($v, '://') === FALSE) + if ($k === 'src' && ! preg_match('#^https?://#i', $v)) { if ($index_page === TRUE) { -- cgit v1.2.3-24-g4f1b