mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-29 17:39:56 +03:00
minor optimisation, saving function call to len() per iteration
This commit is contained in:
parent
1453b25700
commit
a7c8d012d5
|
@ -31,6 +31,7 @@ def tamper(payload, **kwargs):
|
|||
retVal = ""
|
||||
i = 0
|
||||
payloadLength = len(payload)
|
||||
|
||||
while i < payloadLength:
|
||||
if payload[i] == '%' and (i < payloadLength - 2) and payload[i + 1:i + 2] in string.hexdigits and payload[i + 2:i + 3] in string.hexdigits:
|
||||
retVal += "\\u00%s" % payload[i + 1:i + 3]
|
||||
|
|
Loading…
Reference in New Issue
Block a user