Skip to content

Commit

Permalink
Prevent unescaping of apostrophe and quote entities in XML response.
Browse files Browse the repository at this point in the history
  • Loading branch information
martomo committed Nov 23, 2019
1 parent a4e0ba7 commit 0b76fe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xdebug/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def convert(matches):
else:
try:
# Following are not needed to be converted for XML
if text[1:-1] == 'amp' or text[1:-1] == 'gt' or text[1:-1] == 'lt':
if text[1:-1] in ('amp', 'apos', 'gt', 'lt', 'quot'):
pass
else:
text = H.unicode_chr(name2codepoint[text[1:-1]])
Expand Down

0 comments on commit 0b76fe7

Please sign in to comment.