diff options
author | Andrey Andreev <narf@devilix.net> | 2014-01-24 18:32:48 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2014-01-24 18:32:48 +0100 |
commit | c53a1784d742f1ade62161fcdb913da8e33c0c5c (patch) | |
tree | 93e64d950619efdc4470f814c482619be5fde8a4 | |
parent | c715b22eb153aa702b07a158357ee2b13a24cf67 (diff) |
CI_Security: Also add <svg> to 'naughty' HTML elements
-rw-r--r-- | system/core/Security.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Security.php b/system/core/Security.php index e08572525..49e5ab411 100644 --- a/system/core/Security.php +++ b/system/core/Security.php @@ -469,7 +469,7 @@ class CI_Security { * So this: <blink> * Becomes: <blink> */ - $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'; + $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|svg|xml|xss'; $str = preg_replace_callback('#<(/*\s*)('.$naughty.')([^><]*)([><]*)#is', array($this, '_sanitize_naughty_html'), $str); /* |