diff options
author | Andrey Andreev <narf@devilix.net> | 2014-01-25 15:59:17 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2014-01-25 15:59:17 +0100 |
commit | adf3bde5f8a196013acc615e5bfeedd0ef6417b8 (patch) | |
tree | eacb94ef4bbb385972a8f94f0ecf02202d864ae3 /system | |
parent | 12445caa95a62842f726212aaa09f897f9018f11 (diff) |
Re-add 'on\w*' to evil attributes (rel #2667)
Diffstat (limited to 'system')
-rw-r--r-- | system/core/Security.php | 3 |
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) { |