mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-23 15:54:24 +03:00
Merge pull request #578 from mattoufoutu/master
api's get_option function doesn't lookup the right object
This commit is contained in:
commit
93628cdd62
|
@ -389,7 +389,7 @@ def option_get(taskid):
|
|||
|
||||
option = request.json.get("option", "")
|
||||
|
||||
if option in tasks[taskid]:
|
||||
if option in tasks[taskid].options:
|
||||
return jsonize({option: tasks[taskid].get_option(option)})
|
||||
else:
|
||||
return jsonize({option: "not set"})
|
||||
|
|
Loading…
Reference in New Issue
Block a user