Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d322513

Browse files
committed
Minor patch (different drive letter)
1 parent 2546022 commit d322513

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.3.5.125"
21+
VERSION = "1.3.5.126"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

sqlmap.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,10 @@ def main():
352352

353353
for match in re.finditer(r'File "(.+?)", line', excMsg):
354354
file_ = match.group(1)
355-
file_ = os.path.relpath(file_, os.path.dirname(__file__))
355+
try:
356+
file_ = os.path.relpath(file_, os.path.dirname(__file__))
357+
except ValueError:
358+
pass
356359
file_ = file_.replace("\\", '/')
357360
if "../" in file_:
358361
file_ = re.sub(r"(\.\./)+", '/', file_)

0 commit comments

Comments
 (0)