mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
bug fix for MSSQL identificators which were starting with d, b, o and . Thing is that .lstrip strips all occurances of the given chars :) (spotted ancidentally)
This commit is contained in:
@@ -2571,7 +2571,9 @@ def unsafeSQLIdentificatorNaming(name):
|
|||||||
elif Backend.getIdentifiedDbms() in (DBMS.MSSQL, DBMS.ORACLE, DBMS.PGSQL):
|
elif Backend.getIdentifiedDbms() in (DBMS.MSSQL, DBMS.ORACLE, DBMS.PGSQL):
|
||||||
retVal = name.replace("\"", "")
|
retVal = name.replace("\"", "")
|
||||||
if Backend.getIdentifiedDbms() in (DBMS.MSSQL, DBMS.SYBASE):
|
if Backend.getIdentifiedDbms() in (DBMS.MSSQL, DBMS.SYBASE):
|
||||||
retVal = retVal.lstrip("%s." % DEFAULT_MSSQL_SCHEMA)
|
prefix = "%s." % DEFAULT_MSSQL_SCHEMA
|
||||||
|
if retVal.startswith(prefix):
|
||||||
|
retVal = retVal[len(prefix):]
|
||||||
|
|
||||||
return retVal
|
return retVal
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user