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.4.6.11 "
21+ VERSION = "1.4.6.12 "
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 @@ -71,10 +71,10 @@ def http_request(self, request):
7171
7272 # NOTE: https://github.com/sqlmapproject/sqlmap/issues/4235
7373 if request .data :
74- for match in re .finditer (r "(?i)\s*-{20,}\w+(\s+Content-Disposition[^\n]+\s+|\-\-\s*)" , request .data ):
74+ for match in re .finditer (b "(?i)\s*-{20,}\w+(\s+Content-Disposition[^\n ]+\s+|\-\-\s*)" , request .data ):
7575 part = match .group (0 )
76- if '\r ' not in part :
77- request .data = request .data .replace (part , part .replace (" \n " , "\r \n " ))
76+ if b '\r ' not in part :
77+ request .data = request .data .replace (part , part .replace (b' \n ' , b "\r \n " ))
7878
7979 return request
8080
You can’t perform that action at this time.
0 commit comments