Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
1776eadc
Commit
1776eadc
authored
Dec 16, 2006
by
Steven Wittens
Browse files
#103563
: Restore removing of HTML comments in filter_xss()
parent
9f8ef08c
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/filter/filter.module
View file @
1776eadc
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment