mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 13:11:29 +00:00
fix for a google bug reported by Brandon E.
This commit is contained in:
@@ -79,7 +79,7 @@ def sha1hash(string):
|
||||
|
||||
def urldecode(string):
|
||||
result = None
|
||||
|
||||
|
||||
if string:
|
||||
result = urllib.unquote_plus(string)
|
||||
|
||||
@@ -106,3 +106,9 @@ def utf8encode(string):
|
||||
|
||||
def utf8decode(string):
|
||||
return string.decode("utf-8")
|
||||
|
||||
def htmlescape(string):
|
||||
return string.replace('&', '&').replace('<', '<').replace('>', '>').replace('"', '"').replace("'", ''')
|
||||
|
||||
def htmlunescape(string):
|
||||
return string.replace('&', '&').replace('<', '<').replace('>', '>').replace('"', '"').replace(''', "'")
|
||||
|
||||
Reference in New Issue
Block a user