File tree 3 files changed +12
-8
lines changed
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):
3659
3659
elif Backend .getIdentifiedDbms () in (DBMS .ORACLE ,):
3660
3660
retVal = "\" %s\" " % retVal .upper ()
3661
3661
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
3667
3671
3668
3672
if _ and DEFAULT_MSSQL_SCHEMA not in retVal and '.' not in re .sub (r"\[[^]]+\]" , "" , retVal ):
3669
3673
retVal = "%s.%s" % (DEFAULT_MSSQL_SCHEMA , retVal )
Original file line number Diff line number Diff line change 19
19
from lib .core .enums import OS
20
20
21
21
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22
- VERSION = "1.2.12.33 "
22
+ VERSION = "1.2.12.34 "
23
23
TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
24
24
TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
25
25
VERSION_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
29
29
1e5532ede194ac9c083891c2f02bca93 lib/controller/__init__.py
30
30
e62309b22a59e60b270e62586f169441 lib/core/agent.py
31
31
c347f085bd561adfa26d3a9512e5f3b9 lib/core/bigarray.py
32
- ae4bf844c42f9a36ebbe8444e89f7041 lib/core/common.py
32
+ 22eb6444f89ef013cd256c92771cff5a lib/core/common.py
33
33
0d082da16c388b3445e656e0760fb582 lib/core/convert.py
34
34
9f87391b6a3395f7f50830b391264f27 lib/core/data.py
35
35
72016ea5c994a711a262fd64572a0fcd lib/core/datatype.py
@@ -49,7 +49,7 @@ c8c386d644d57c659d74542f5f57f632 lib/core/patch.py
49
49
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
50
50
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
51
51
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
52
- 43eec1a3d017f1d440b89e9ecf3f2ff8 lib/core/settings.py
52
+ 16ba53ca22bb764b6cdee725ffe41618 lib/core/settings.py
53
53
a971ce157d04de96ba6e710d3d38a9a8 lib/core/shell.py
54
54
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
55
55
1581be48127a3a7a9fd703359b6e7567 lib/core/target.py
You can’t perform that action at this time.
0 commit comments