File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717from lib .core .enums import OS
1818
1919# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
20- VERSION = "1.3.4.17 "
20+ VERSION = "1.3.4.18 "
2121TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2222TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2323VERSION_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 @@ -608,7 +608,7 @@ class _(dict):
608608 page = getUnicode (page )
609609
610610 code = ex .code
611- status = getSafeExString (ex )
611+ status = getattr ( ex , "reason" , None ) or getSafeExString (ex ). split ( ": " )[ - 1 ]
612612
613613 kb .originalCode = kb .originalCode or code
614614 threadData .lastHTTPError = (threadData .lastRequestUID , code , status )
You can’t perform that action at this time.
0 commit comments