summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-01-25 21:56:49 +0100
committerAndrey Andreev <narf@devilix.net>2014-01-25 21:56:49 +0100
commit505431ab4873e071ceabffdc1a8ce363c0c8dcbc (patch)
treea01ee50a01842081b38e423c4355abb41097885e /system
parentdbd999f33374f6541f167e3d77a3e80a991b301a (diff)
Add <math> to '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 8acab01fc..cbff38b30 100644
--- a/system/core/Security.php
+++ b/system/core/Security.php
@@ -475,7 +475,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|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);
/*