diff options
author | Andrey Andreev <narf@devilix.net> | 2014-01-25 21:56:49 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2014-01-25 21:56:49 +0100 |
commit | 505431ab4873e071ceabffdc1a8ce363c0c8dcbc (patch) | |
tree | a01ee50a01842081b38e423c4355abb41097885e /system/core | |
parent | dbd999f33374f6541f167e3d77a3e80a991b301a (diff) |
Add <math> to 'naughty' HTML elements
Diffstat (limited to 'system/core')
-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 8acab01fc..cbff38b30 100644 --- a/system/core/Security.php +++ b/system/core/Security.php @@ -475,7 +475,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|svg|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|math|video|svg|xml|xss'; $str = preg_replace_callback('#<(/*\s*)('.$naughty.')([^><]*)([><]*)#is', array($this, '_sanitize_naughty_html'), $str); /* |