diff options
author | Andrey Andreev <narf@devilix.net> | 2017-03-06 13:39:28 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2017-03-06 13:39:28 +0100 |
commit | 356bc66ebcd6a4d48c28fd119233e9d0bb12375f (patch) | |
tree | c47cac8609dc7f5fc19b7d5f5dd783990c7db9c0 /system/helpers/html_helper.php | |
parent | 618870f9f70148944599c1db64babec09e7424bc (diff) |
Fix #5044; add unit tests for img() HTML helper
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 de1b92cde..87a5f9b23 100644 --- a/system/helpers/html_helper.php +++ b/system/helpers/html_helper.php @@ -192,7 +192,7 @@ if ( ! function_exists('img')) foreach ($src as $k => $v) { - if ($k === 'src' && ! preg_match('#^([a-z]+:)?//#i', $v)) + if ($k === 'src' && ! preg_match('#^(data:[a-z,;])|(([a-z]+:)?(?<!data:)//)#i', $v)) { if ($index_page === TRUE) { |