summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-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)
{