summaryrefslogtreecommitdiffstats
path: root/system/core/Security.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-01-25 15:59:17 +0100
committerAndrey Andreev <narf@devilix.net>2014-01-25 15:59:17 +0100
commitadf3bde5f8a196013acc615e5bfeedd0ef6417b8 (patch)
treeeacb94ef4bbb385972a8f94f0ecf02202d864ae3 /system/core/Security.php
parent12445caa95a62842f726212aaa09f897f9018f11 (diff)
Re-add 'on\w*' to evil attributes (rel #2667)
Diffstat (limited to 'system/core/Security.php')
-rw-r--r--system/core/Security.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/system/core/Security.php b/system/core/Security.php
index 95f65e579..93613cc78 100644
--- a/system/core/Security.php
+++ b/system/core/Security.php
@@ -667,8 +667,7 @@ class CI_Security {
*/
protected function _remove_evil_attributes($str, $is_image)
{
- // Formaction, style, and xmlns
- $evil_attributes = array('style', 'xmlns', 'formaction', 'form', 'xlink:href');
+ $evil_attributes = array('on\w*', 'style', 'xmlns', 'formaction', 'form', 'xlink:href');
if ($is_image === TRUE)
{