File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818from 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 "
2222TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2323TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2424VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
Original file line number Diff line number Diff 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_ )
You can’t perform that action at this time.
0 commit comments