mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-10 17:59:04 +00:00
More refactoring for #4077
This commit is contained in:
@@ -238,7 +238,7 @@ def getBytes(value, encoding=None, errors="strict", unsafe=True):
|
||||
retVal = value
|
||||
|
||||
if encoding is None:
|
||||
encoding = conf.encoding or UNICODE_ENCODING
|
||||
encoding = conf.get("encoding") or UNICODE_ENCODING
|
||||
|
||||
try:
|
||||
codecs.lookup(encoding)
|
||||
|
||||
Reference in New Issue
Block a user