mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 19:13:48 +03: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:
parent
b2f6ce9716
commit
b202d73b46
|
@ -2571,7 +2571,9 @@ def unsafeSQLIdentificatorNaming(name):
|
|||
elif Backend.getIdentifiedDbms() in (DBMS.MSSQL, DBMS.ORACLE, DBMS.PGSQL):
|
||||
retVal = name.replace("\"", "")
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user