From 0b76fe7438bd01cf18469cafdb8032594252fc1b Mon Sep 17 00:00:00 2001 From: Martijn Dijkhuizen Date: Sat, 23 Nov 2019 18:52:30 +0100 Subject: [PATCH] Prevent unescaping of apostrophe and quote entities in XML response. --- xdebug/protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xdebug/protocol.py b/xdebug/protocol.py index e2ec63e..152527a 100644 --- a/xdebug/protocol.py +++ b/xdebug/protocol.py @@ -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]])