From 47d162f391c66b04abcc44f5e755f118e8772d4d Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 31 Aug 2012 12:27:40 +0200 Subject: [PATCH] Minor update (same but cleaner) --- lib/request/connect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/request/connect.py b/lib/request/connect.py index 21c27f5ab..0f4627b3d 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -573,7 +573,7 @@ class Connect: # addendum: as we support url encoding in tampering # functions therefore we need to use % as a safe char if place != PLACE.URI or (value and payload and '?' in value and value.find('?') < value.find(payload)): - payload = urlencode(payload, '%', False, True) if not place in (PLACE.POST, PLACE.CUSTOM_POST) and not conf.skipUrlEncode else payload + payload = urlencode(payload, '%', False, True) if place not in (PLACE.POST, PLACE.CUSTOM_POST) and not conf.skipUrlEncode else payload value = agent.replacePayload(value, payload) elif place == PLACE.SOAP: