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

Function _formatPartialContent

lib/techniques/error/use.py:284–297  ·  view source on GitHub ↗

Prepares (possibly hex-encoded) partial content for safe console output

(value)

Source from the content-addressed store, hash-verified

282 return retVal
283
284def _formatPartialContent(value):
285 """
286 Prepares (possibly hex-encoded) partial content for safe console output
287 """
288
289 if value and isinstance(value, six.string_types):
290 try:
291 value = decodeHex(value, binary=False)
292 except:
293 pass
294 finally:
295 value = safecharencode(value)
296
297 return value
298
299def errorUse(expression, dump=False):
300 """

Callers 1

_oneShotErrorUseFunction · 0.85

Calls 2

decodeHexFunction · 0.90
safecharencodeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…