Minor patch
Some checks are pending
/ build (macos-latest, 3.8) (push) Waiting to run
/ build (ubuntu-latest, pypy-2.7) (push) Waiting to run
/ build (windows-latest, 3.14) (push) Waiting to run

This commit is contained in:
Miroslav Štampar 2026-06-22 00:21:16 +02:00
parent 0b2b3e956f
commit bf28b0ae47
3 changed files with 9 additions and 7 deletions

View file

@ -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):
"""

View file

@ -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)