updated readfp to read_file as it is outdated

This commit is contained in:
Sundar Karthik S 2024-04-12 19:52:18 +05:30
parent 853cb3fa06
commit c5e623b2b8

View File

@ -68,7 +68,7 @@ def configFileParser(configFile):
try:
config = UnicodeRawConfigParser()
config.readfp(configFP)
config.read_file(configFP)
except Exception as ex:
errMsg = "you have provided an invalid and/or unreadable configuration file ('%s')" % getSafeExString(ex)
raise SqlmapSyntaxException(errMsg)