File tree Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -3659,11 +3659,15 @@ def safeSQLIdentificatorNaming(name, isTable=False):
36593659 elif Backend .getIdentifiedDbms () in (DBMS .ORACLE ,):
36603660 retVal = "\" %s\" " % retVal .upper ()
36613661 elif Backend .getIdentifiedDbms () in (DBMS .MSSQL , DBMS .SYBASE ):
3662- parts = retVal .split ('.' , 1 )
3663- for i in xrange (len (parts )):
3664- if ((parts [i ] or " " )[0 ].isdigit () or not re .match (r"\A\w+\Z" , parts [i ], re .U )):
3665- parts [i ] = "[%s]" % parts [i ]
3666- retVal = '.' .join (parts )
3662+ if isTable :
3663+ parts = retVal .split ('.' , 1 )
3664+ for i in xrange (len (parts )):
3665+ if parts [i ] and (re .search (r"\A\d|[^\w]" , parts [i ], re .U ) or parts [i ].upper () in kb .keywords ):
3666+ parts [i ] = "[%s]" % parts [i ]
3667+ retVal = '.' .join (parts )
3668+ else :
3669+ if re .search (r"\A\d|[^\w]" , retVal , re .U ) or retVal .upper () in kb .keywords :
3670+ retVal = "[%s]" % retVal
36673671
36683672 if _ and DEFAULT_MSSQL_SCHEMA not in retVal and '.' not in re .sub (r"\[[^]]+\]" , "" , retVal ):
36693673 retVal = "%s.%s" % (DEFAULT_MSSQL_SCHEMA , retVal )
Original file line number Diff line number Diff line change 1919from lib .core .enums import OS
2020
2121# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22- VERSION = "1.2.12.33 "
22+ VERSION = "1.2.12.34 "
2323TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2424TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2525VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ c1bccc94522d3425a372dcd57f78418e extra/wafdetectify/wafdetectify.py
29291e5532ede194ac9c083891c2f02bca93 lib/controller/__init__.py
3030e62309b22a59e60b270e62586f169441 lib/core/agent.py
3131c347f085bd561adfa26d3a9512e5f3b9 lib/core/bigarray.py
32- ae4bf844c42f9a36ebbe8444e89f7041 lib/core/common.py
32+ 22eb6444f89ef013cd256c92771cff5a lib/core/common.py
33330d082da16c388b3445e656e0760fb582 lib/core/convert.py
34349f87391b6a3395f7f50830b391264f27 lib/core/data.py
353572016ea5c994a711a262fd64572a0fcd lib/core/datatype.py
@@ -49,7 +49,7 @@ c8c386d644d57c659d74542f5f57f632 lib/core/patch.py
49490c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
5050a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
5151fcb74fcc9577523524659ec49e2e964b lib/core/session.py
52- 43eec1a3d017f1d440b89e9ecf3f2ff8 lib/core/settings.py
52+ 16ba53ca22bb764b6cdee725ffe41618 lib/core/settings.py
5353a971ce157d04de96ba6e710d3d38a9a8 lib/core/shell.py
5454a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
55551581be48127a3a7a9fd703359b6e7567 lib/core/target.py
You can’t perform that action at this time.
0 commit comments