mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-22 02:44:20 +03:00
minor fix
This commit is contained in:
parent
df4e3be191
commit
d958c2fe48
|
@ -559,7 +559,7 @@ class Connect:
|
||||||
# throughly without safe chars (especially & and =)
|
# throughly without safe chars (especially & and =)
|
||||||
# addendum: as we support url encoding in tampering
|
# addendum: as we support url encoding in tampering
|
||||||
# functions therefore we need to use % as a safe char
|
# functions therefore we need to use % as a safe char
|
||||||
if place != PLACE.URI or ('?' in value and value.find('?') < value.find(payload)):
|
if place != PLACE.URI or (value and '?' in value and value.find('?') < value.find(payload)):
|
||||||
payload = urlencode(payload, "%", False, True)
|
payload = urlencode(payload, "%", False, True)
|
||||||
value = agent.replacePayload(value, payload)
|
value = agent.replacePayload(value, payload)
|
||||||
elif place == PLACE.SOAP:
|
elif place == PLACE.SOAP:
|
||||||
|
@ -642,7 +642,7 @@ class Connect:
|
||||||
post += "%s%s=%s" % (delimiter, name, value)
|
post += "%s%s=%s" % (delimiter, name, value)
|
||||||
else:
|
else:
|
||||||
get += "%s%s=%s" % (delimiter, name, value)
|
get += "%s%s=%s" % (delimiter, name, value)
|
||||||
|
|
||||||
get = urlencode(get, limit=True)
|
get = urlencode(get, limit=True)
|
||||||
if post and place != PLACE.POST and hasattr(post, UNENCODED_ORIGINAL_VALUE):
|
if post and place != PLACE.POST and hasattr(post, UNENCODED_ORIGINAL_VALUE):
|
||||||
post = getattr(post, UNENCODED_ORIGINAL_VALUE)
|
post = getattr(post, UNENCODED_ORIGINAL_VALUE)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user