Skip to content

Commit

Permalink
Fixes #2771 and is a followup to r4832
Browse files Browse the repository at this point in the history
  • Loading branch information
isaiah committed Apr 2, 2010
1 parent 7721a29 commit 02f7836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/libraries/Input.php
Expand Up @@ -465,7 +465,7 @@ protected function xss_filter_default($data)
{ {
// Remove really unwanted tags // Remove really unwanted tags
$old_data = $data; $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); while ($old_data !== $data);


Expand Down

0 comments on commit 02f7836

Please sign in to comment.