Skip to content

Commit e846209

Browse files
committed
Update regarding #5092
1 parent a246b8d commit e846209

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lib/core/settings.py

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

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

lib/request/connect.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,9 +1011,10 @@ def queryPage(value=None, place=None, content=False, getRatioValue=False, silent
10111011

10121012
if (kb.postHint or conf.skipUrlEncode) and postUrlEncode:
10131013
postUrlEncode = False
1014-
conf.httpHeaders = [_ for _ in conf.httpHeaders if _[1] != contentType]
1015-
contentType = POST_HINT_CONTENT_TYPES.get(kb.postHint, PLAIN_TEXT_CONTENT_TYPE)
1016-
conf.httpHeaders.append((HTTP_HEADER.CONTENT_TYPE, contentType))
1014+
if not (conf.skipUrlEncode and contentType): # NOTE: https://github.com/sqlmapproject/sqlmap/issues/5092
1015+
conf.httpHeaders = [_ for _ in conf.httpHeaders if _[1] != contentType]
1016+
contentType = POST_HINT_CONTENT_TYPES.get(kb.postHint, PLAIN_TEXT_CONTENT_TYPE)
1017+
conf.httpHeaders.append((HTTP_HEADER.CONTENT_TYPE, contentType))
10171018

10181019
if payload:
10191020
delimiter = conf.paramDel or (DEFAULT_GET_POST_DELIMITER if place != PLACE.COOKIE else DEFAULT_COOKIE_DELIMITER)

0 commit comments

Comments
 (0)