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

Function decodeStringEscape

lib/core/common.py:4108–4120  ·  view source on GitHub ↗

Decodes escaped string values (e.g. "\\t" -> "\t")

(value)

Source from the content-addressed store, hash-verified

4106 return retVal
4107
4108def decodeStringEscape(value):
4109 """
4110 Decodes escaped string values (e.g. "\\t" -> "\t")
4111 """
4112
4113 retVal = value
4114
4115 if value and '\\' in value:
4116 charset = "\\%s" % string.whitespace.replace(" ", "")
4117 for _ in charset:
4118 retVal = retVal.replace(repr(_).strip("'"), _)
4119
4120 return retVal
4121
4122def encodeStringEscape(value):
4123 """

Callers 2

_cleanupOptionsFunction · 0.90
parseSqliteTableSchemaFunction · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…