From 63bc4ce1169f30de84237a4f955e25e11ab6aa2a Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 30 Dec 2011 14:11:02 +0000 Subject: [PATCH] minor patch --- 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 9cb0f1abf..1f7acc225 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -569,7 +569,7 @@ class Connect: # throughly without safe chars (especially & and =) # 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 '?' in value and value.find('?') < value.find(payload)): + if place != PLACE.URI or (value and payload and '?' in value and value.find('?') < value.find(payload)): payload = urlencode(payload, "%", False, True) value = agent.replacePayload(value, payload) elif place == PLACE.SOAP: