mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 05:04:11 +03:00
minor refactoring
This commit is contained in:
parent
ba1df457ab
commit
a5ad4621c9
|
@ -2344,17 +2344,12 @@ def filterListValue(value, regex):
|
||||||
expression
|
expression
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if regex:
|
if isinstance(value, list) and regex:
|
||||||
retVal = []
|
retVal = filter(lambda word: getCompiledRegex(regex, re.I).search(word), value)
|
||||||
filt = getCompiledRegex(regex, re.I)
|
|
||||||
|
|
||||||
for word in value:
|
|
||||||
if filt.search(word):
|
|
||||||
retVal.append(word)
|
|
||||||
|
|
||||||
return retVal
|
|
||||||
else:
|
else:
|
||||||
return value
|
retVal = value
|
||||||
|
|
||||||
|
return retVal
|
||||||
|
|
||||||
def showHttpErrorCodes():
|
def showHttpErrorCodes():
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user