mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 04:31:30 +00:00
Proper patch for #5688
This commit is contained in:
@@ -68,7 +68,10 @@ def configFileParser(configFile):
|
||||
|
||||
try:
|
||||
config = UnicodeRawConfigParser()
|
||||
config.readfp(configFP)
|
||||
if hasattr(config, "read_file"):
|
||||
config.read_file(configFP)
|
||||
else:
|
||||
config.readfp(configFP)
|
||||
except Exception as ex:
|
||||
errMsg = "you have provided an invalid and/or unreadable configuration file ('%s')" % getSafeExString(ex)
|
||||
raise SqlmapSyntaxException(errMsg)
|
||||
|
||||
Reference in New Issue
Block a user