Skip to content

Commit 354977b

Browse files
committed
Minor bug fix - LEN counts lengths for trimmed strings
1 parent 52c7424 commit 354977b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

data/xml/queries.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164

165165
<dbms value="Microsoft SQL Server">
166166
<cast query="CAST(%s AS NVARCHAR(4000))"/>
167-
<length query="LTRIM(STR(LEN(%s)))"/>
167+
<length query="LTRIM(STR(LEN(%s+'.')-1))"/>
168168
<isnull query="ISNULL(%s,' ')"/>
169169
<delimiter query="+"/>
170170
<limit query="SELECT TOP %d "/>
@@ -556,7 +556,7 @@
556556

557557
<dbms value="Sybase">
558558
<cast query="CONVERT(VARCHAR(4000),%s)"/>
559-
<length query="LTRIM(STR(LEN(%s)))"/>
559+
<length query="LTRIM(STR(LEN(%s+'.')-1))"/>
560560
<isnull query="ISNULL(%s,' ')"/>
561561
<delimiter query="+"/>
562562
<limit query="SELECT TOP %d "/>

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty import six
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.10.7.72"
23+
VERSION = "1.10.7.73"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
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)