mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-01-28 17:19:15 +00:00
Minor bug fix
This commit is contained in:
@@ -316,7 +316,7 @@ def getBytes(value, encoding=None, errors="strict", unsafe=True):
|
||||
retVal = value.encode(encoding, errors)
|
||||
|
||||
if unsafe:
|
||||
retVal = re.sub(r"%s([0-9a-f]{2})" % SAFE_HEX_MARKER, lambda _: decodeHex(_.group(1)), retVal)
|
||||
retVal = re.sub((r"%s([0-9a-f]{2})" % SAFE_HEX_MARKER).encode(), lambda _: decodeHex(_.group(1)), retVal)
|
||||
else:
|
||||
try:
|
||||
retVal = value.encode(encoding, errors)
|
||||
|
||||
Reference in New Issue
Block a user