Bug fix for not displaying proper version in unhandled exception win cases

This commit is contained in:
Miroslav Stampar 2014-11-12 11:53:42 +01:00
parent c98bd521c5
commit d0afa7f325

View File

@ -2847,7 +2847,7 @@ def unhandledExceptionMessage():
errMsg += "reproduce the bug. The "
errMsg += "developers will try to reproduce the bug, fix it accordingly "
errMsg += "and get back to you\n"
errMsg += "sqlmap version: %s%s\n" % (VERSION, "-%s" % REVISION if REVISION else "")
errMsg += "sqlmap version: %s\n" % VERSION_STRING[VERSION_STRING.find('/') + 1:]
errMsg += "Python version: %s\n" % PYVERSION
errMsg += "Operating system: %s\n" % PLATFORM
errMsg += "Command line: %s\n" % re.sub(r".+?\bsqlmap.py\b", "sqlmap.py", " ".join(sys.argv))