summaryrefslogtreecommitdiffstats
path: root/system/helpers/html_helper.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-03-12 12:42:00 +0100
committerAndrey Andreev <narf@devilix.net>2014-03-12 12:42:00 +0100
commit2095258569bfdf6a16ec66a2db6014e6a04fff6d (patch)
tree04853462b3508255d155e4aa36e4503ca517bd98 /system/helpers/html_helper.php
parentfde170c0640a04e0d9d686bfa368e1f368cc1ba1 (diff)
parentbcb6b8ee66e0d813ba35fda29d299c7923b2d732 (diff)
Merge pull request #2934 from wuwx/patch-3
Check image path is include http:// or https://
Diffstat (limited to 'system/helpers/html_helper.php')
-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)
{