Update for Issue #118

This commit is contained in:
Miroslav Stampar
2012-07-24 15:43:29 +02:00
parent f8c9868cb6
commit 922ea9d1f4
6 changed files with 15 additions and 11 deletions

View File

@@ -1330,9 +1330,9 @@ def __cleanupOptions():
if conf.dbms:
conf.dbms = conf.dbms.capitalize()
if conf.tstF:
if not any([char in conf.tstF for char in ('.', ')', '(', ']', '[')]):
conf.tstF = conf.tstF.replace('*', '.*')
if conf.testFilter:
if not any([char in conf.testFilter for char in ('.', ')', '(', ']', '[')]):
conf.testFilter = conf.testFilter.replace('*', '.*')
if conf.timeSec not in kb.explicitSettings:
if conf.tor:

View File

@@ -194,7 +194,7 @@ optDict = {
"mobile": "boolean",
"pageRank": "boolean",
"smart": "boolean",
"tstF": "string",
"testFilter": "string",
"wizard": "boolean",
"verbose": "integer"
},

View File

@@ -519,3 +519,6 @@ BOLD_PATTERNS = ("' injectable", "might be injectable", "' is vulnerable", "is n
# Generic www root directory names
GENERIC_DOC_ROOT_DIRECTORY_NAMES = ("htdocs", "wwwroot", "www")
# Maximum length of a help part containing switch/option name(s)
MAX_HELP_OPTION_LENGTH = 18