minor refactoring

This commit is contained in:
Miroslav Stampar
2012-04-15 17:17:30 +00:00
parent 965c1511a6
commit ccd6fb70a8
6 changed files with 7 additions and 32 deletions

View File

@@ -33,9 +33,4 @@ def tamper(payload):
Reference: http://projects.webappsec.org/w/page/13246949/Null-Byte-Injection
"""
retVal = payload
if payload:
retVal = "%s%%00" % payload
return retVal
return "%s%%00" % payload if payload else payload