summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2006-12-16 01:05:11 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2006-12-16 01:05:11 +0000
commit1776eadc92c0b2ca8d5b7687f34d52d2c42d1da8 (patch)
tree0532a25d0be3aee2d7e3515c46b543d018689b3c /modules
parent9f8ef08ce99f366ebe121bb98febba1ffb927307 (diff)
downloadbrdo-1776eadc92c0b2ca8d5b7687f34d52d2c42d1da8.tar.gz
brdo-1776eadc92c0b2ca8d5b7687f34d52d2c42d1da8.tar.bz2
#103563: Restore removing of HTML comments in filter_xss()
Diffstat (limited to 'modules')
-rw-r--r--modules/filter/filter.module2
1 files changed, 1 insertions, 1 deletions
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