mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 02:53:46 +03:00
Removing redundant piece of code
This commit is contained in:
parent
dc9dc233b6
commit
9d81be7af5
|
@ -19,9 +19,9 @@ class Syntax(GenericSyntax):
|
||||||
def escaper(value):
|
def escaper(value):
|
||||||
retVal = None
|
retVal = None
|
||||||
try:
|
try:
|
||||||
retVal = "0x%s" % binascii.hexlify(value.strip("'"))
|
retVal = "0x%s" % binascii.hexlify(value)
|
||||||
except UnicodeEncodeError:
|
except UnicodeEncodeError:
|
||||||
retVal = "CONVERT(0x%s USING utf8)" % "".join("%.2x" % ord(_) for _ in utf8encode(value.strip("'")))
|
retVal = "CONVERT(0x%s USING utf8)" % "".join("%.2x" % ord(_) for _ in utf8encode(value))
|
||||||
return retVal
|
return retVal
|
||||||
|
|
||||||
return Syntax._escape(expression, quote, escaper)
|
return Syntax._escape(expression, quote, escaper)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user