sqlmap/tamper/space2comment.py
Miroslav Stampar 43a3ac2c3a some bug fixes
2010-10-13 20:54:18 +00:00

17 lines
354 B
Python

import re
from lib.core.convert import urldecode
from lib.core.convert import urlencode
"""
' ' -> /**/
"""
def tamper(place, value):
if value:
if place != "URI":
value = urldecode(value)
value = value.replace(" ", "/**/")
if place != "URI":
value = urlencode(value)
return value