mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-06-28 04:20:58 +00:00
Minor patch
This commit is contained in:
parent
0b2b3e956f
commit
bf28b0ae47
3 changed files with 9 additions and 7 deletions
|
|
@ -5346,6 +5346,8 @@ def splitFields(fields, delimiter=','):
|
|||
['foo', 'bar', 'max(foo,bar)']
|
||||
>>> splitFields("a, 'b, c', d")
|
||||
['a', "'b, c'", 'd']
|
||||
>>> splitFields('a; b; max(c; d)', delimiter=';')
|
||||
['a', 'b', 'max(c;d)']
|
||||
"""
|
||||
|
||||
# collapse "<delimiter> " -> "<delimiter>" but only OUTSIDE quoted string literals, so a
|
||||
|
|
@ -5376,11 +5378,11 @@ def splitFields(fields, delimiter=','):
|
|||
index += 1
|
||||
|
||||
fields = "".join(normalized)
|
||||
commas = [-1, len(fields)]
|
||||
commas.extend(zeroDepthSearch(fields, ','))
|
||||
commas = sorted(commas)
|
||||
splits = [-1, len(fields)]
|
||||
splits.extend(zeroDepthSearch(fields, delimiter))
|
||||
splits = sorted(splits)
|
||||
|
||||
return [fields[x + 1:y] for (x, y) in _zip(commas, commas[1:])]
|
||||
return [fields[x + 1:y] for (x, y) in _zip(splits, splits[1:])]
|
||||
|
||||
def pollProcess(process, suppress_errors=False):
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ from lib.core.enums import OS
|
|||
from thirdparty import six
|
||||
|
||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||
VERSION = "1.10.6.142"
|
||||
VERSION = "1.10.6.143"
|
||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue