mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
Patch for an Issue #246
This commit is contained in:
parent
f305dde413
commit
a52dbc575b
4 changed files with 10 additions and 10 deletions
|
|
@ -1110,7 +1110,7 @@ def __setHTTPMethod():
|
|||
Check and set the HTTP method to perform HTTP requests through.
|
||||
"""
|
||||
|
||||
conf.method = HTTPMETHOD.POST if conf.data else HTTPMETHOD.GET
|
||||
conf.method = HTTPMETHOD.POST if conf.data is not None else HTTPMETHOD.GET
|
||||
|
||||
debugMsg = "setting the HTTP method to %s" % conf.method
|
||||
logger.debug(debugMsg)
|
||||
|
|
|
|||
|
|
@ -80,11 +80,11 @@ def __setRequestParams():
|
|||
testableParameters = True
|
||||
|
||||
# Perform checks on POST parameters
|
||||
if conf.method == HTTPMETHOD.POST and not conf.data:
|
||||
if conf.method == HTTPMETHOD.POST and conf.data is None:
|
||||
errMsg = "HTTP POST method depends on HTTP data value to be posted"
|
||||
raise sqlmapSyntaxException, errMsg
|
||||
|
||||
if conf.data:
|
||||
if conf.data is not None:
|
||||
conf.method = HTTPMETHOD.POST
|
||||
|
||||
if CUSTOM_INJECTION_MARK_CHAR in conf.data: # later processed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue