Make XML/HTML encoding in SOAP requests optional (#6015)

Co-authored-by: soffensive <soffensive>
This commit is contained in:
soffensive
2026-02-05 10:52:25 +01:00
committed by GitHub
parent 2b6115c70c
commit 9312d26da8
4 changed files with 9 additions and 1 deletions

View File

@@ -1116,7 +1116,7 @@ class Connect(object):
logger.log(CUSTOM_LOGGING.PAYLOAD, safecharencode(payload.replace('\\', BOUNDARY_BACKSLASH_MARKER)).replace(BOUNDARY_BACKSLASH_MARKER, '\\'))
if place == PLACE.CUSTOM_POST and kb.postHint:
if kb.postHint in (POST_HINT.SOAP, POST_HINT.XML):
if kb.postHint in (POST_HINT.SOAP, POST_HINT.XML) and not conf.skipXmlEncode:
# payloads in SOAP/XML should have chars > and < replaced
# with their HTML encoded counterparts
payload = payload.replace("&#", SAFE_HEX_MARKER)