From 02f7836061f36bea972353571bd31fe4b15079f8 Mon Sep 17 00:00:00 2001 From: isaiah Date: Fri, 2 Apr 2010 15:08:00 +0000 Subject: [PATCH] Fixes #2771 and is a followup to r4832 --- system/libraries/Input.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/libraries/Input.php b/system/libraries/Input.php index 1ea9b37d..a41fe1b6 100644 --- a/system/libraries/Input.php +++ b/system/libraries/Input.php @@ -465,7 +465,7 @@ protected function xss_filter_default($data) { // Remove really unwanted tags $old_data = $data; - $data = preg_replace('#]*+>#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);