File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88"""
99
1010from lib .core .exception import sqlmapSyntaxException
11+
1112from plugins .generic .syntax import Syntax as GenericSyntax
1213
1314class Syntax (GenericSyntax ):
@@ -30,7 +31,6 @@ def unescape(expression, quote=True):
3031
3132 lastIndex = firstIndex + index
3233 old = "'%s'" % expression [firstIndex :lastIndex ]
33- #unescaped = "("
3434 unescaped = ""
3535
3636 for i in xrange (firstIndex , lastIndex ):
Original file line number Diff line number Diff line change @@ -31,11 +31,10 @@ def unescape(expression, quote=True):
3131
3232 lastIndex = firstIndex + index
3333 old = "'%s'" % expression [firstIndex :lastIndex ]
34- #unescaped = "("
3534 unescaped = ""
3635
3736 for i in xrange (firstIndex , lastIndex ):
38- unescaped += "CHAR (%d)" % (ord (expression [i ]))
37+ unescaped += "%s (%d)" % ("CHAR" if ord ( expression [ i ]) < 256 else "TO_UNICHAR" , ord (expression [i ]))
3938 if i < lastIndex - 1 :
4039 unescaped += "+"
4140
You can’t perform that action at this time.
0 commit comments