mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
Minor style fix
This commit is contained in:
parent
38978c3e54
commit
4de4f5c1ba
|
@ -132,9 +132,10 @@ def main():
|
|||
excMsg = traceback.format_exc()
|
||||
|
||||
for match in re.finditer(r'File "(.+?)", line', excMsg):
|
||||
file_ = match.group(1).replace('\\', "/")
|
||||
file_ = file_[file_.find("sqlmap"):] if "sqlmap" in file_ else file_
|
||||
file_ = re.sub(r"(?i)sqlmap[^/]*/", "", file_, 1)
|
||||
file_ = match.group(1)
|
||||
file_ = os.path.relpath(file_, os.path.dirname(__file__))
|
||||
file_ = file_.replace("\\", '/')
|
||||
file_ = re.sub(r"\.\./", '/', file_).lstrip('/')
|
||||
excMsg = excMsg.replace(match.group(1), file_)
|
||||
|
||||
logger.critical(errMsg)
|
||||
|
|
Loading…
Reference in New Issue
Block a user