summaryrefslogtreecommitdiffstats
path: root/system/core
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2013-10-04 12:49:59 +0200
committerAndrey Andreev <narf@devilix.net>2013-10-04 12:49:59 +0200
commit2637f5b6afd5160a3714206727d5b5ca224cab62 (patch)
tree555db26491cb4957447332b20606525b47bc0f34 /system/core
parentf040d8a4bd233c63f0e6057711a6c2bcaba1a732 (diff)
parent46e77e0d28cf6c057484df022a012e85de2f79b6 (diff)
Merge pull request #2670 from DaveMC08/feature/issue_2667
partial fix #2667
Diffstat (limited to 'system/core')
-rw-r--r--system/core/Security.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Security.php b/system/core/Security.php
index 70cf3e013..368e17dc3 100644
--- a/system/core/Security.php
+++ b/system/core/Security.php
@@ -603,7 +603,7 @@ class CI_Security {
*/
public function strip_image_tags($str)
{
- return preg_replace(array('#<img\s+.*?src\s*=\s*["\'](.+?)["\'].*?\>#', '#<img\s+.*?src\s*=\s*(.+?).*?\>#'), '\\1', $str);
+ return preg_replace(array('#<img[\s/]+.*?src\s*=\s*["\'](.+?)["\'].*?\>#', '#<img[\s/]+.*?src\s*=\s*(.+?).*?\>#'), '\\1', $str);
}
// ----------------------------------------------------------------