summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-02-10 08:23:26 +0100
committerAndrey Andreev <narf@devilix.net>2014-02-10 08:23:26 +0100
commit3b9990c43f0951674b1c8bc1dd05ac0419f1e63c (patch)
treebbf9fe96c7ce2ade6d031f2455643a8f7971f102 /system
parenta30a717e15895631cafe232b13777870a693742d (diff)
CI_Security: Expect a backslash as a tag separator
Diffstat (limited to 'system')
-rw-r--r--system/core/Security.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/core/Security.php b/system/core/Security.php
index 93e6a3ba5..062c828a7 100644
--- a/system/core/Security.php
+++ b/system/core/Security.php
@@ -450,12 +450,12 @@ class CI_Security {
if (preg_match('/<a/i', $str))
{
- $str = preg_replace_callback('#<a[\s\d"\'`;/=,\(]+([^>]*?)(?:>|$)#si', array($this, '_js_link_removal'), $str);
+ $str = preg_replace_callback('#<a[\s\d"\'`;/=,\(\\\\]+([^>]*?)(?:>|$)#si', array($this, '_js_link_removal'), $str);
}
if (preg_match('/<img/i', $str))
{
- $str = preg_replace_callback('#<img[\s\d"\'`;/=,\(]+([^>]*?)(?:\s?/?>|$)#si', array($this, '_js_img_removal'), $str);
+ $str = preg_replace_callback('#<img[\s\d"\'`;/=,\(\\\\]+([^>]*?)(?:\s?/?>|$)#si', array($this, '_js_img_removal'), $str);
}
if (preg_match('/script|xss/i', $str))