Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 77dea38

Browse files
committed
Fixes #1918
1 parent 7dc2ec5 commit 77dea38

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3338,7 +3338,7 @@ def safeSQLIdentificatorNaming(name, isTable=False):
33383338
retVal = "\"%s\"" % retVal.strip("\"")
33393339
elif Backend.getIdentifiedDbms() in (DBMS.ORACLE,):
33403340
retVal = "\"%s\"" % retVal.strip("\"").upper()
3341-
elif Backend.getIdentifiedDbms() in (DBMS.MSSQL,) and not re.match(r"\A\w+\Z", retVal, re.U):
3341+
elif Backend.getIdentifiedDbms() in (DBMS.MSSQL,) and ((retVal or " ")[0].isdigit() or not re.match(r"\A\w+\Z", retVal, re.U)):
33423342
retVal = "[%s]" % retVal.strip("[]")
33433343

33443344
if _ and DEFAULT_MSSQL_SCHEMA not in retVal and '.' not in re.sub(r"\[[^]]+\]", "", retVal):

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.revision import getRevisionNumber
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.0.6.10"
22+
VERSION = "1.0.6.11"
2323
REVISION = getRevisionNumber()
2424
STABLE = VERSION.count('.') <= 2
2525
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

0 commit comments

Comments
 (0)