Patch of bug introduced with 76905e8728

This commit is contained in:
Miroslav Stampar
2018-03-11 02:46:37 +01:00
parent 24cefeaee2
commit 11b52c85e1
3 changed files with 6 additions and 6 deletions

View File

@@ -861,9 +861,9 @@ class Connect(object):
skip = True
if not skip:
spaceplus = kb.postSpaceToPlus and place in (PLACE.POST, PLACE.CUSTOM_POST)
value = urlencode(value, spaceplus=spaceplus)
payload = urlencode(payload, safe='%', spaceplus=spaceplus)
if place in (PLACE.POST, PLACE.CUSTOM_POST): # potential problems in other cases (e.g. URL encoding of whole URI - including path)
value = urlencode(value, spaceplus=kb.postSpaceToPlus)
payload = urlencode(payload, safe='%', spaceplus=kb.postSpaceToPlus)
value = agent.replacePayload(value, payload)
postUrlEncode = False