mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-10-25 05:06:10 +00:00
Minor check
This commit is contained in:
parent
f1000e0d15
commit
862959f27a
2 changed files with 8 additions and 1 deletions
|
|
@ -1524,6 +1524,13 @@ def _cleanupOptions():
|
|||
Cleanup configuration attributes.
|
||||
"""
|
||||
|
||||
if conf.encoding:
|
||||
try:
|
||||
codecs.lookup(conf.encoding)
|
||||
except Exception as ex:
|
||||
errMsg = "unknown encoding '%s'" % conf.encoding
|
||||
raise SqlmapValueException(errMsg)
|
||||
|
||||
debugMsg = "cleaning up configuration parameters"
|
||||
logger.debug(debugMsg)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue