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

Function joinValue

lib/core/common.py:3710–3727  ·  view source on GitHub ↗

Returns a value consisting of joined parts of a given value >>> joinValue(['1', '2']) '1,2' >>> joinValue('1') '1' >>> joinValue(['1', None]) '1,None'

(value, delimiter=',')

Source from the content-addressed store, hash-verified

3708 yield i
3709
3710def joinValue(value, delimiter=','):
3711 """
3712 Returns a value consisting of joined parts of a given value
3713
3714 >>> joinValue(['1', '2'])
3715 '1,2'
3716 >>> joinValue('1')
3717 '1'
3718 >>> joinValue(['1', None])
3719 '1,None'
3720 """
3721
3722 if isListLike(value):
3723 retVal = delimiter.join(getText(_ if _ is not None else "None") for _ in value)
3724 else:
3725 retVal = value
3726
3727 return retVal
3728
3729def isListLike(value):
3730 """

Callers 2

checkSqlInjectionFunction · 0.90
sqlQueryMethod · 0.90

Calls 2

getTextFunction · 0.90
isListLikeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…