mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-05-05 16:23:46 +03:00
Dummy commit (just to test hooks)
This commit is contained in:
parent
4f1b0787ed
commit
ef911b6be4
|
@ -3509,9 +3509,9 @@ def listToStrValue(value):
|
||||||
|
|
||||||
return retVal
|
return retVal
|
||||||
|
|
||||||
def intersect(valueA, valueB, lowerCase=False):
|
def intersect(containerA, containerB, lowerCase=False):
|
||||||
"""
|
"""
|
||||||
Returns intersection of the array-ized values
|
Returns intersection of the container-ized values
|
||||||
|
|
||||||
>>> intersect([1, 2, 3], set([1,3]))
|
>>> intersect([1, 2, 3], set([1,3]))
|
||||||
[1, 3]
|
[1, 3]
|
||||||
|
@ -3519,15 +3519,15 @@ def intersect(valueA, valueB, lowerCase=False):
|
||||||
|
|
||||||
retVal = []
|
retVal = []
|
||||||
|
|
||||||
if valueA and valueB:
|
if containerA and containerB:
|
||||||
valueA = arrayizeValue(valueA)
|
containerA = arrayizeValue(containerA)
|
||||||
valueB = arrayizeValue(valueB)
|
containerB = arrayizeValue(containerB)
|
||||||
|
|
||||||
if lowerCase:
|
if lowerCase:
|
||||||
valueA = [val.lower() if isinstance(val, basestring) else val for val in valueA]
|
containerA = [val.lower() if isinstance(val, basestring) else val for val in containerA]
|
||||||
valueB = [val.lower() if isinstance(val, basestring) else val for val in valueB]
|
containerB = [val.lower() if isinstance(val, basestring) else val for val in containerB]
|
||||||
|
|
||||||
retVal = [val for val in valueA if val in valueB]
|
retVal = [val for val in containerA if val in containerB]
|
||||||
|
|
||||||
return retVal
|
return retVal
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user