minor bug fix (#297)

This commit is contained in:
Bernardo Damele 2012-12-20 17:05:44 +00:00
parent 7adaffa71b
commit 912323c12d
2 changed files with 10 additions and 3 deletions

View File

@ -209,4 +209,13 @@ optDict = {
"wizard": "boolean",
"verbose": "integer"
},
"Hidden": {
"profile": "boolean",
"cpuThrottle": "integer",
"forceDns": "boolean",
"smokeTest": "boolean",
"liveTest": "boolean",
"stopFail": "boolean",
"runCase": "string"
}
}

View File

@ -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-")