mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-03 11:45:46 +03:00
Trivial refactoring
This commit is contained in:
parent
5497a6e58d
commit
8d7796f41c
|
@ -3294,11 +3294,10 @@ def createGithubIssue(errMsg, excMsg):
|
|||
Automatically create a Github issue with unhandled exception information
|
||||
"""
|
||||
|
||||
issues = []
|
||||
try:
|
||||
issues = getFileItems(paths.GITHUB_HISTORY, unique=True)
|
||||
except:
|
||||
pass
|
||||
issues = []
|
||||
finally:
|
||||
issues = set(issues)
|
||||
|
||||
|
@ -3373,7 +3372,7 @@ def maskSensitiveData(msg):
|
|||
|
||||
retVal = getUnicode(msg)
|
||||
|
||||
for item in filter(None, map(lambda x: conf.get(x), SENSITIVE_OPTIONS)):
|
||||
for item in filter(None, (conf.get(_) for _ in SENSITIVE_OPTIONS)):
|
||||
regex = SENSITIVE_DATA_REGEX % re.sub("(\W)", r"\\\1", getUnicode(item))
|
||||
while extractRegexResult(regex, retVal):
|
||||
value = extractRegexResult(regex, retVal)
|
||||
|
|
|
@ -1766,7 +1766,7 @@ def _cleanupOptions():
|
|||
conf.string = conf.string.replace(_.encode("string_escape"), _)
|
||||
|
||||
if conf.getAll:
|
||||
map(lambda x: conf.__setitem__(x, True), WIZARD.ALL)
|
||||
map(lambda _: conf.__setitem__(_, True), WIZARD.ALL)
|
||||
|
||||
if conf.noCast:
|
||||
for _ in DUMP_REPLACEMENTS.keys():
|
||||
|
|
Loading…
Reference in New Issue
Block a user