mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +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
|
|
@ -12,7 +12,7 @@ __priority__ = PRIORITY.HIGHER
|
|||
def dependencies():
|
||||
pass
|
||||
|
||||
def tamper(payload, headers):
|
||||
def tamper(payload, headers=None):
|
||||
"""
|
||||
Embraces complete query with zero-versioned comment
|
||||
|
||||
|
|
@ -42,4 +42,4 @@ def tamper(payload, headers):
|
|||
if ' ' in payload:
|
||||
retVal = "%s /*!00000%s*/%s" % (payload[:payload.find(' ')], payload[payload.find(' ') + 1:], postfix)
|
||||
|
||||
return retVal, headers
|
||||
return retVal
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue