mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-09 09:52:35 +01:00
minor refactoring
This commit is contained in:
parent
ba1df457ab
commit
a5ad4621c9
1 changed files with 5 additions and 10 deletions
|
|
@ -2344,17 +2344,12 @@ def filterListValue(value, regex):
|
|||
expression
|
||||
"""
|
||||
|
||||
if regex:
|
||||
retVal = []
|
||||
filt = getCompiledRegex(regex, re.I)
|
||||
|
||||
for word in value:
|
||||
if filt.search(word):
|
||||
retVal.append(word)
|
||||
|
||||
return retVal
|
||||
if isinstance(value, list) and regex:
|
||||
retVal = filter(lambda word: getCompiledRegex(regex, re.I).search(word), value)
|
||||
else:
|
||||
return value
|
||||
retVal = value
|
||||
|
||||
return retVal
|
||||
|
||||
def showHttpErrorCodes():
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue