From dbd999f33374f6541f167e3d77a3e80a991b301a Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Sat, 25 Jan 2014 22:55:21 +0200 Subject: Previous commit caused side effects ... --- system/core/Security.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'system/core') diff --git a/system/core/Security.php b/system/core/Security.php index 15cb37620..8acab01fc 100644 --- a/system/core/Security.php +++ b/system/core/Security.php @@ -683,7 +683,7 @@ class CI_Security { $attribs = array(); // find occurrences of illegal attribute strings with quotes (042 and 047 are octal quotes) - preg_match_all('/\W('.implode('|', $evil_attributes).')\s*=\s*(\042|\047)([^\\2]*?)(\\2)/is', $str, $matches, PREG_SET_ORDER); + preg_match_all('/(?]*)/is', $str, $matches, PREG_SET_ORDER); + preg_match_all('/(?]*)/is', $str, $matches, PREG_SET_ORDER); foreach ($matches as $attr) { -- cgit v1.2.3-24-g4f1b