summaryrefslogtreecommitdiffstats
path: root/system/helpers/security_helper.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-06-26 23:52:47 +0200
committerAndrey Andreev <narf@bofh.bg>2012-06-26 23:52:47 +0200
commit1a24a9da3cfbacf8802ffd0b79f5494d30278007 (patch)
tree4162c6176a54085aa9d9f63417707975e611937d /system/helpers/security_helper.php
parentffe7938b8d6dfdbdac8a34008dbbb15d31de6080 (diff)
Fix issue #427
Diffstat (limited to 'system/helpers/security_helper.php')
-rw-r--r--system/helpers/security_helper.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/helpers/security_helper.php b/system/helpers/security_helper.php
index 7968f9e9f..0e8e9f93d 100644
--- a/system/helpers/security_helper.php
+++ b/system/helpers/security_helper.php
@@ -108,7 +108,8 @@ if ( ! function_exists('strip_image_tags'))
*/
function strip_image_tags($str)
{
- return preg_replace(array('#<img\s+.*?src\s*=\s*["\'](.+?)["\'].*?\>#', '#<img\s+.*?src\s*=\s*(.+?).*?\>#'), '\\1', $str);
+ $CI =& get_instance();
+ return $CI->security->strip_image_tags($str);
}
}