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

Skip to content

Commit 15f94bd

Browse files
committed
Trivial update
1 parent 7202bb0 commit 15f94bd

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

lib/core/common.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4040,6 +4040,14 @@ def safeSQLIdentificatorNaming(name, isTable=False):
40404040
Returns a safe representation of SQL identificator name (internal data format)
40414041
40424042
# Reference: http://stackoverflow.com/questions/954884/what-special-characters-are-allowed-in-t-sql-column-retVal
4043+
4044+
>>> pushValue(kb.forcedDbms)
4045+
>>> kb.forcedDbms = DBMS.MSSQL
4046+
>>> getText(safeSQLIdentificatorNaming("begin"))
4047+
'[begin]'
4048+
>>> getText(safeSQLIdentificatorNaming("foobar"))
4049+
'foobar'
4050+
>>> kb.forceDbms = popValue()
40434051
"""
40444052

40454053
retVal = name
@@ -4079,6 +4087,14 @@ def safeSQLIdentificatorNaming(name, isTable=False):
40794087
def unsafeSQLIdentificatorNaming(name):
40804088
"""
40814089
Extracts identificator's name from its safe SQL representation
4090+
4091+
>>> pushValue(kb.forcedDbms)
4092+
>>> kb.forcedDbms = DBMS.MSSQL
4093+
>>> getText(unsafeSQLIdentificatorNaming("[begin]"))
4094+
'begin'
4095+
>>> getText(unsafeSQLIdentificatorNaming("foobar"))
4096+
'foobar'
4097+
>>> kb.forceDbms = popValue()
40824098
"""
40834099

40844100
retVal = name

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.3.11.41"
21+
VERSION = "1.3.11.42"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

0 commit comments

Comments
 (0)