Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38978c3 commit 4de4f5cCopy full SHA for 4de4f5c
1 file changed
sqlmap.py
@@ -132,9 +132,10 @@ def main():
132
excMsg = traceback.format_exc()
133
134
for match in re.finditer(r'File "(.+?)", line', excMsg):
135
- file_ = match.group(1).replace('\\', "/")
136
- file_ = file_[file_.find("sqlmap"):] if "sqlmap" in file_ else file_
137
- file_ = re.sub(r"(?i)sqlmap[^/]*/", "", file_, 1)
+ file_ = match.group(1)
+ file_ = os.path.relpath(file_, os.path.dirname(__file__))
+ file_ = file_.replace("\\", '/')
138
+ file_ = re.sub(r"\.\./", '/', file_).lstrip('/')
139
excMsg = excMsg.replace(match.group(1), file_)
140
141
logger.critical(errMsg)
0 commit comments