-
Notifications
You must be signed in to change notification settings - Fork 21.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tags with invalid names should also be stripped in order to prevent
XSS attacks. Thanks Sascha Depold for the report.
- Loading branch information
1 parent
8a39f41
commit 586a944
Showing
2 changed files
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@tenderlove
This breaks passing xml: true to HTML::Document.new
Resulting in:
RuntimeError: expected > (got "?>" for , {"version"=>"1.0", "standalone"=>"yes"})
Also I am not sure where this is used other than testing so I am not clear where the issue was with xss attacks. Thoughts?