diff options
author | Andrey Andreev <narf@devilix.net> | 2014-03-12 12:42:00 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2014-03-12 12:42:00 +0100 |
commit | 2095258569bfdf6a16ec66a2db6014e6a04fff6d (patch) | |
tree | 04853462b3508255d155e4aa36e4503ca517bd98 /system | |
parent | fde170c0640a04e0d9d686bfa368e1f368cc1ba1 (diff) | |
parent | bcb6b8ee66e0d813ba35fda29d299c7923b2d732 (diff) |
Merge pull request #2934 from wuwx/patch-3
Check image path is include http:// or https://
Diffstat (limited to 'system')
-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) { |