MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / listToStrValue

Function listToStrValue

lib/core/common.py:4068–4084  ·  view source on GitHub ↗

Flattens list to a string value >>> listToStrValue([1,2,3]) '1, 2, 3'

(value)

Source from the content-addressed store, hash-verified

4066 return retVal
4067
4068def listToStrValue(value):
4069 """
4070 Flattens list to a string value
4071
4072 >>> listToStrValue([1,2,3])
4073 '1, 2, 3'
4074 """
4075
4076 if isinstance(value, (set, tuple, types.GeneratorType)):
4077 value = list(value)
4078
4079 if isinstance(value, list):
4080 retVal = value.__str__().lstrip('[').rstrip(']')
4081 else:
4082 retVal = value
4083
4084 return retVal
4085
4086def intersect(containerA, containerB, lowerCase=False):
4087 """

Callers 7

checkSqlInjectionFunction · 0.90
checkConnectionFunction · 0.90
_comparisonFunction · 0.90
_unionPositionFunction · 0.90
_Function · 0.90
_oneShotErrorUseFunction · 0.90
maskSensitiveDataFunction · 0.85

Calls 1

__str__Method · 0.45

Tested by 1

_unionPositionFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…