diff options
author | wuwx <wuweixin@gmail.com> | 2014-03-12 12:34:25 +0100 |
---|---|---|
committer | wuwx <wuweixin@gmail.com> | 2014-03-12 12:34:25 +0100 |
commit | bcb6b8ee66e0d813ba35fda29d299c7923b2d732 (patch) | |
tree | 04853462b3508255d155e4aa36e4503ca517bd98 /system/helpers/html_helper.php | |
parent | fde170c0640a04e0d9d686bfa368e1f368cc1ba1 (diff) |
Check image path is include http:// or https://
Diffstat (limited to 'system/helpers/html_helper.php')
-rw-r--r-- | system/helpers/html_helper.php | 2 |
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) { |