File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1148,14 +1148,14 @@ def _setSafeVisit():
11481148 checkFile (conf .safeReqFile )
11491149
11501150 raw = readCachedFileContent (conf .safeReqFile )
1151- match = re .search (r"\A([A-Z]+) ([^ ]+) HTTP/[0-9.]+\Z" , raw [: raw . find ('\n ' )] )
1151+ match = re .search (r"\A([A-Z]+) ([^ ]+) HTTP/[0-9.]+\Z" , raw . split ('\n ' )[ 0 ]. strip () )
11521152
11531153 if match :
11541154 kb .safeReq .method = match .group (1 )
11551155 kb .safeReq .url = match .group (2 )
11561156 kb .safeReq .headers = {}
11571157
1158- for line in raw [ raw . find ('\n ' ) + 1 :]. split ( ' \n ' ) :
1158+ for line in raw . split ('\n ' )[ 1 :]:
11591159 line = line .strip ()
11601160 if line and ':' in line :
11611161 key , value = line .split (':' , 1 )
Original file line number Diff line number Diff line change 1919from lib .core .enums import OS
2020
2121# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22- VERSION = "1.3.3.45 "
22+ VERSION = "1.3.3.46 "
2323TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2424TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2525VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
You can’t perform that action at this time.
0 commit comments