Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d958c2f

Browse files
committed
minor fix
1 parent df4e3be commit d958c2f

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
@@ -559,7 +559,7 @@ def queryPage(value=None, place=None, content=False, getRatioValue=False, silent
559559
# throughly without safe chars (especially & and =)
560560
# addendum: as we support url encoding in tampering
561561
# functions therefore we need to use % as a safe char
562-
if place != PLACE.URI or ('?' in value and value.find('?') < value.find(payload)):
562+
if place != PLACE.URI or (value and '?' in value and value.find('?') < value.find(payload)):
563563
payload = urlencode(payload, "%", False, True)
564564
value = agent.replacePayload(value, payload)
565565
elif place == PLACE.SOAP:
@@ -642,7 +642,7 @@ def _randomizeParameter(paramString, randomParameter):
642642
post += "%s%s=%s" % (delimiter, name, value)
643643
else:
644644
get += "%s%s=%s" % (delimiter, name, value)
645-
645+
646646
get = urlencode(get, limit=True)
647647
if post and place != PLACE.POST and hasattr(post, UNENCODED_ORIGINAL_VALUE):
648648
post = getattr(post, UNENCODED_ORIGINAL_VALUE)

0 commit comments

Comments
 (0)