mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 13:11:29 +00:00
Fixes #3696
This commit is contained in:
@@ -2522,9 +2522,10 @@ def commonFinderOnly(initial, sequence):
|
||||
Returns parts of sequence which start with the given initial string
|
||||
|
||||
>>> commonFinderOnly("abcd", ["abcdefg", "foobar", "abcde"])
|
||||
['abcdefg', 'abcde']
|
||||
'abcde'
|
||||
"""
|
||||
return longestCommonPrefix([_ for _ in sequence if _.startswith(initial)])
|
||||
|
||||
return longestCommonPrefix(*[_ for _ in sequence if _.startswith(initial)])
|
||||
|
||||
def pushValue(value):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user