summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwuwx <wuweixin@gmail.com>2014-03-12 12:34:25 +0100
committerwuwx <wuweixin@gmail.com>2014-03-12 12:34:25 +0100
commitbcb6b8ee66e0d813ba35fda29d299c7923b2d732 (patch)
tree04853462b3508255d155e4aa36e4503ca517bd98
parentfde170c0640a04e0d9d686bfa368e1f368cc1ba1 (diff)
Check image path is include http:// or https://
-rw-r--r--system/helpers/html_helper.php2
1 files changed, 1 insertions, 1 deletions
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)
{