mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 08:14:24 +03:00
minor bug fix (#297)
This commit is contained in:
parent
7adaffa71b
commit
912323c12d
|
@ -209,4 +209,13 @@ optDict = {
|
|||
"wizard": "boolean",
|
||||
"verbose": "integer"
|
||||
},
|
||||
"Hidden": {
|
||||
"profile": "boolean",
|
||||
"cpuThrottle": "integer",
|
||||
"forceDns": "boolean",
|
||||
"smokeTest": "boolean",
|
||||
"liveTest": "boolean",
|
||||
"stopFail": "boolean",
|
||||
"runCase": "string"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -61,7 +61,7 @@ def is_admin(taskid):
|
|||
return True
|
||||
|
||||
def init_options():
|
||||
dataype = {"boolean": False, "string": "", "integer": 0, "float": 0.0}
|
||||
dataype = {"boolean": False, "string": None, "integer": None, "float": None}
|
||||
options = AttribDict()
|
||||
|
||||
for _ in optDict:
|
||||
|
@ -260,8 +260,6 @@ def scan_start(taskid):
|
|||
for key, value in request.json.items():
|
||||
tasks[taskid][key] = value
|
||||
|
||||
print "DEBUG TASKS:", tasks
|
||||
|
||||
# Overwrite output directory (oDir) value to a temporary directory
|
||||
tasks[taskid].oDir = tempfile.mkdtemp(prefix="sqlmap-")
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user