mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-23 15:54:24 +03:00
api's get_option function doesn't lookup the right object
This commit is contained in:
parent
a06a6de193
commit
c3dd6e1e32
|
@ -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