mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-10-20 18:54:02 +00:00
Tamper function(s) refactoring (really no need for returning headers as they are passed by reference)
This commit is contained in:
parent
54fbb22ab8
commit
12fc9442b9
36 changed files with 70 additions and 72 deletions
|
|
@ -14,7 +14,7 @@ __priority__ = PRIORITY.LOWEST
|
|||
def dependencies():
|
||||
pass
|
||||
|
||||
def tamper(payload, headers):
|
||||
def tamper(payload, headers=None):
|
||||
"""
|
||||
Url-encodes all characters in a given payload (not processing already
|
||||
encoded)
|
||||
|
|
@ -50,4 +50,4 @@ def tamper(payload, headers):
|
|||
retVal += '%%%.2X' % ord(payload[i])
|
||||
i += 1
|
||||
|
||||
return retVal, headers
|
||||
return retVal
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue