mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
minor lower/upper case fix
This commit is contained in:
parent
9be89422da
commit
08e0eb9b61
2 changed files with 15 additions and 4 deletions
|
|
@ -2679,7 +2679,7 @@ def getExceptionFrameLocals():
|
|||
|
||||
return retVal
|
||||
|
||||
def intersect(valueA, valueB):
|
||||
def intersect(valueA, valueB, lowerCase=False):
|
||||
"""
|
||||
Returns intersection of the array-ized values
|
||||
"""
|
||||
|
|
@ -2687,7 +2687,14 @@ def intersect(valueA, valueB):
|
|||
retVal = None
|
||||
|
||||
if valueA and valueB:
|
||||
retVal = [val for val in arrayizeValue(valueA) if val in arrayizeValue(valueB)]
|
||||
valueA = arrayizeValue(valueA)
|
||||
valueB = arrayizeValue(valueB)
|
||||
|
||||
if lowerCase:
|
||||
valueA = [val.lower() if isinstance(val, basestring) else val for val in valueA]
|
||||
valueB = [val.lower() if isinstance(val, basestring) else val for val in valueB]
|
||||
|
||||
retVal = [val for val in valueA if val in valueB]
|
||||
|
||||
return retVal
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue