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

@@ -29,9 +29,4 @@ def tamper(payload):
* http://lukasz.pilorz.net/testy/full_width_utf/index.phps
"""
retVal = payload
if payload:
retVal = payload.replace('\'', '%EF%BC%87')
return retVal
return payload.replace('\'', '%EF%BC%87') if payload else payload