minor patch

This commit is contained in:
Miroslav Stampar 2011-12-03 12:11:46 +00:00
parent 39b406c5c1
commit 5f7dbec41f
2 changed files with 36 additions and 32 deletions

View File

@ -621,7 +621,7 @@ mariano <marianoso@gmail.com>
for reporting a bug
mitchell <mitchell@tufala.net>
for reporting a bug
for reporting a few bugs
Nadzree <nadzree@bake180.com>
for reporting a minor bug

View File

@ -212,6 +212,7 @@ def __setOutputResume():
if os.path.exists(conf.sessionFile):
if not conf.flushSession:
try:
readSessionFP = codecs.open(conf.sessionFile, "r", UNICODE_ENCODING, 'replace')
__url_cache = set()
__expression_cache = {}
@ -252,7 +253,10 @@ def __setOutputResume():
if kb.injection.place is not None and kb.injection.parameter is not None:
kb.injections.append(kb.injection)
except IOError, msg:
errMsg = "unable to properly open the session file (%s)" % msg
raise sqlmapFilePathException, errMsg
else:
readSessionFP.close()
else:
try: