Permalink
Browse files

Fixes #2771 and is a followup to r4832

  • Loading branch information...
isaiah
isaiah committed Apr 2, 2010
1 parent 7721a29 commit 02f7836061f36bea972353571bd31fe4b15079f8
Showing with 1 addition and 1 deletion.
  1. +1 −1 system/libraries/Input.php
@@ -465,7 +465,7 @@ protected function xss_filter_default($data)
{
// Remove really unwanted tags
$old_data = $data;
- $data = preg_replace('#</*[\x00-\x20]*(?:applet|b(?:ase|gsound|link)|embed|frame(?:set)?|i(?:frame|layer)|l(?:ayer|ink)|meta|object|s(?:cript|tyle)|title|xml)[^>]*+>#i', '', $data);
+ $data = preg_replace('#<[\x00-\x20]*/*[\x00-\x20]*+(?:applet|b(?:ase|gsound|link)|embed|frame(?:set)?|i(?:frame|layer)|l(?:ayer|ink)|meta|object|s(?:cript|tyle)|title|xml)[^>]*+#i', '', $data);
}
while ($old_data !== $data);

0 comments on commit 02f7836

Please sign in to comment.