mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 08:14:24 +03:00
Patch for an Issue #362 (more work required)
This commit is contained in:
parent
b4a55a809e
commit
a7028af2e9
|
@ -15,9 +15,11 @@ class Syntax(GenericSyntax):
|
|||
@staticmethod
|
||||
def escape(expression, quote=True):
|
||||
def escaper(value):
|
||||
retVal = value
|
||||
if isDBMSVersionAtLeast('2.1'):
|
||||
retVal = "||".join("ASCII_CHAR(%d)" % ord(_) for _ in value)
|
||||
return retVal
|
||||
return "||".join("ASCII_CHAR(%d)" % ord(_) for _ in value)
|
||||
|
||||
return Syntax._escape(expression, quote, escaper)
|
||||
retVal = expression
|
||||
|
||||
if isDBMSVersionAtLeast('2.1'):
|
||||
retVal = Syntax._escape(expression, quote, escaper)
|
||||
|
||||
return retVal
|
|
@ -17,9 +17,11 @@ class Syntax(GenericSyntax):
|
|||
@staticmethod
|
||||
def escape(expression, quote=True):
|
||||
def escaper(value):
|
||||
retVal = value
|
||||
if isDBMSVersionAtLeast('3'):
|
||||
retVal = "X'%s'" % binascii.hexlify(value)
|
||||
return retVal
|
||||
return "X'%s'" % binascii.hexlify(value)
|
||||
|
||||
return Syntax._escape(expression, quote, escaper)
|
||||
retVal = expression
|
||||
|
||||
if isDBMSVersionAtLeast('3'):
|
||||
retVal = Syntax._escape(expression, quote, escaper)
|
||||
|
||||
return retVal
|
Loading…
Reference in New Issue
Block a user