Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
o Updated to remove '<!--' and '-->' from XML comments to guard again…
…st XML XML injection issues. Fixes #3
- Loading branch information
f933e5e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The following comment will bypass this code and will successfully print
<!--
in the comment, but it's not a security issue anymore, as it doesn't allow any injection.A short <-->!-- comment.
f933e5e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AIUI, XML forbids
--
in comments, so perhaps strip or otherwise disengage that instead? (Perhaps replace by-
plus zero-width or other space plus-
?)