From 1776eadc92c0b2ca8d5b7687f34d52d2c42d1da8 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Sat, 16 Dec 2006 01:05:11 +0000 Subject: #103563: Restore removing of HTML comments in filter_xss() --- modules/filter/filter.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/filter/filter.module b/modules/filter/filter.module index 29c8e798f..5ad6da298 100644 --- a/modules/filter/filter.module +++ b/modules/filter/filter.module @@ -1278,7 +1278,7 @@ function filter_xss($string, $allowed_tags = array('a', 'em', 'strong', 'cite', return preg_replace_callback('% ( - <(?=[^a-zA-Z/]) # a lone < + <(?=[^a-zA-Z!/]) # a lone < | # or <[^>]*.(>|$) # a string that starts with a <, up until the > or the end of the string | # or -- cgit v1.2.3