From adf3bde5f8a196013acc615e5bfeedd0ef6417b8 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Sat, 25 Jan 2014 16:59:17 +0200 Subject: Re-add 'on\w*' to evil attributes (rel #2667) --- system/core/Security.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'system/core') 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) { -- cgit v1.2.3-24-g4f1b