mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 04:53:48 +03:00
minor update
This commit is contained in:
parent
1fd1ec22a1
commit
8793fbc9f5
|
@ -2824,6 +2824,8 @@ def safeSQLIdentificatorNaming(name, isTable=False):
|
||||||
retVal = name
|
retVal = name
|
||||||
|
|
||||||
if isinstance(name, basestring):
|
if isinstance(name, basestring):
|
||||||
|
name = getUnicode(name)
|
||||||
|
|
||||||
if isTable and Backend.getIdentifiedDbms() in (DBMS.MSSQL, DBMS.SYBASE) and '.' not in name:
|
if isTable and Backend.getIdentifiedDbms() in (DBMS.MSSQL, DBMS.SYBASE) and '.' not in name:
|
||||||
name = "%s.%s" % (DEFAULT_MSSQL_SCHEMA, name)
|
name = "%s.%s" % (DEFAULT_MSSQL_SCHEMA, name)
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ class Syntax(GenericSyntax):
|
||||||
unescaped = ""
|
unescaped = ""
|
||||||
|
|
||||||
for i in xrange(firstIndex, lastIndex):
|
for i in xrange(firstIndex, lastIndex):
|
||||||
unescaped += "CHAR(%d)" % (ord(expression[i]))
|
unescaped += "%s(%d)" % ("CHAR" if ord(expression[i]) < 256 else "NCHAR", ord(expression[i]))
|
||||||
if i < lastIndex - 1:
|
if i < lastIndex - 1:
|
||||||
unescaped += "+"
|
unescaped += "+"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user