mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 21:21:33 +00:00
Tamper function(s) refactoring (really no need for returning headers as they are passed by reference)
This commit is contained in:
@@ -14,7 +14,7 @@ __priority__ = PRIORITY.NORMAL
|
||||
def dependencies():
|
||||
pass
|
||||
|
||||
def tamper(payload, headers):
|
||||
def tamper(payload, headers=None):
|
||||
"""
|
||||
Appends special crafted string
|
||||
|
||||
@@ -27,4 +27,4 @@ def tamper(payload, headers):
|
||||
* Reference: http://seclists.org/fulldisclosure/2011/May/163
|
||||
"""
|
||||
|
||||
return payload + " and '0having'='0having'" if payload else payload, headers
|
||||
return payload + " and '0having'='0having'" if payload else payload
|
||||
|
||||
Reference in New Issue
Block a user