mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-23 15:54:24 +03:00
Minor patch (Issue #1327)
This commit is contained in:
parent
e5863d8b89
commit
9ad1d122f4
|
@ -1846,7 +1846,7 @@ def _setKnowledgeBaseAttributes(flushAll=True):
|
|||
kb.permissionFlag = False
|
||||
kb.postHint = None
|
||||
kb.postSpaceToPlus = False
|
||||
kb.postUrlEncode = True
|
||||
kb.postUrlEncode = False
|
||||
kb.prependFlag = False
|
||||
kb.processResponseCounter = 0
|
||||
kb.previousMethod = None
|
||||
|
|
|
@ -683,10 +683,13 @@ def initTargetEnv():
|
|||
class _(unicode):
|
||||
pass
|
||||
|
||||
kb.postUrlEncode = False
|
||||
|
||||
for key, value in conf.httpHeaders:
|
||||
if key.upper() == HTTP_HEADER.CONTENT_TYPE.upper():
|
||||
kb.postUrlEncode = "urlencoded" in value
|
||||
break
|
||||
|
||||
if kb.postUrlEncode:
|
||||
original = conf.data
|
||||
conf.data = _(urldecode(conf.data))
|
||||
|
|
Loading…
Reference in New Issue
Block a user