mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
Patch for an Issue #1013
This commit is contained in:
@@ -71,8 +71,8 @@ def configFileParser(configFile):
|
|||||||
try:
|
try:
|
||||||
config = UnicodeRawConfigParser()
|
config = UnicodeRawConfigParser()
|
||||||
config.readfp(configFP)
|
config.readfp(configFP)
|
||||||
except (MissingSectionHeaderError, ParsingError), ex:
|
except Exception, ex:
|
||||||
errMsg = "you have provided an invalid configuration file ('%s')" % str(ex)
|
errMsg = "you have provided an invalid and/or unreadable configuration file ('%s')" % str(ex)
|
||||||
raise SqlmapSyntaxException(errMsg)
|
raise SqlmapSyntaxException(errMsg)
|
||||||
|
|
||||||
if not config.has_section("Target"):
|
if not config.has_section("Target"):
|
||||||
|
|||||||
Reference in New Issue
Block a user