mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 11:03:47 +03:00
Implementation for Issue #108
This commit is contained in:
parent
53cb105f50
commit
f336afa913
|
@ -653,7 +653,17 @@ class Connect:
|
||||||
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 not in (PLACE.POST, PLACE.SOAP, PLACE.CUSTOM_POST) and hasattr(post, UNENCODED_ORIGINAL_VALUE):
|
if post:
|
||||||
|
if conf.skipUrlEncode is None:
|
||||||
|
_ = (post or "").strip()
|
||||||
|
if _.startswith("<") and _.endswith(">"):
|
||||||
|
msg = "provided POST data looks "
|
||||||
|
msg += "like it's in XML format. "
|
||||||
|
msg += "Do you want to turn off URL encoding "
|
||||||
|
msg += "which is usually causing problems "
|
||||||
|
msg += "in this kind of situations? [Y/n]"
|
||||||
|
conf.skipUrlEncode = readInput(msg, default="Y").upper() != "N"
|
||||||
|
if place not in (PLACE.POST, PLACE.SOAP, PLACE.CUSTOM_POST) and hasattr(post, UNENCODED_ORIGINAL_VALUE):
|
||||||
post = getattr(post, UNENCODED_ORIGINAL_VALUE)
|
post = getattr(post, UNENCODED_ORIGINAL_VALUE)
|
||||||
elif not conf.skipUrlEncode and place not in (PLACE.SOAP,):
|
elif not conf.skipUrlEncode and place not in (PLACE.SOAP,):
|
||||||
post = urlencode(post)
|
post = urlencode(post)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user