summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-01-24 18:11:31 +0100
committerAndrey Andreev <narf@devilix.net>2014-01-24 18:11:31 +0100
commitc715b22eb153aa702b07a158357ee2b13a24cf67 (patch)
treebd170aa6f69d9202b79644a8ffd5c2872f1d4de1 /system
parentee7633c9f883513fa556240d60694f075d8dc056 (diff)
CI_Security: Add <select> and <keygen> tags to the list of 'naughty' HTML elements
Diffstat (limited to 'system')
-rw-r--r--system/core/Security.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Security.php b/system/core/Security.php
index a753aa021..e08572525 100644
--- a/system/core/Security.php
+++ b/system/core/Security.php
@@ -469,7 +469,7 @@ class CI_Security {
* So this: <blink>
* Becomes: &lt;blink&gt;
*/
- $naughty = 'alert|applet|audio|basefont|base|behavior|bgsound|blink|body|embed|expression|form|frameset|frame|head|html|ilayer|iframe|input|button|isindex|layer|link|meta|object|plaintext|style|script|textarea|title|video|xml|xss';
+ $naughty = 'alert|applet|audio|basefont|base|behavior|bgsound|blink|body|embed|expression|form|frameset|frame|head|html|ilayer|iframe|input|button|select|isindex|layer|link|meta|keygen|object|plaintext|style|script|textarea|title|video|xml|xss';
$str = preg_replace_callback('#<(/*\s*)('.$naughty.')([^><]*)([><]*)#is', array($this, '_sanitize_naughty_html'), $str);
/*