Skip to content

Commit b0ca34f

Browse files
committed
Bug fix (payload character '=' was not being url-encoded in custom (user) post cases - when posthint was None)
1 parent bf3fbb0 commit b0ca34f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/request/connect.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ def queryPage(value=None, place=None, content=False, getRatioValue=False, silent
648648

649649
logger.log(CUSTOM_LOGGING.PAYLOAD, safecharencode(payload))
650650

651-
if place == PLACE.CUSTOM_POST:
651+
if place == PLACE.CUSTOM_POST and kb.postHint:
652652
if kb.postHint in (POST_HINT.SOAP, POST_HINT.XML):
653653
# payloads in SOAP/XML should have chars > and < replaced
654654
# with their HTML encoded counterparts
@@ -661,7 +661,7 @@ def queryPage(value=None, place=None, content=False, getRatioValue=False, silent
661661
value = agent.replacePayload(value, payload)
662662
else:
663663
# GET, POST, URI and Cookie payload needs to be throughly URL encoded
664-
if place in (PLACE.GET, PLACE.URI, PLACE.COOKIE) and not conf.skipUrlEncode or place in (PLACE.POST,) and urlEncodePost:
664+
if place in (PLACE.GET, PLACE.URI, PLACE.COOKIE) and not conf.skipUrlEncode or place in (PLACE.POST, PLACE.CUSTOM_POST) and urlEncodePost:
665665
payload = urlencode(payload, '%', False, place != PLACE.URI)
666666
value = agent.replacePayload(value, payload)
667667

0 commit comments

Comments
 (0)