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

Skip to content

Commit db126af

Browse files
committed
Minor generalization for special cases
1 parent 18b72e6 commit db126af

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

lib/core/agent.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,9 @@ def suffixQuery(self, expression, comment=None, suffix=None, where=None, trimEmp
300300
where = getTechniqueData().where if where is None else where
301301
comment = getTechniqueData().comment if comment is None else comment
302302

303-
if Backend.getIdentifiedDbms() in (DBMS.ACCESS, DBMS.MCKOI) and any((comment or "").startswith(_) for _ in ("--", GENERIC_SQL_COMMENT_MARKER)):
304-
comment = queries[Backend.getIdentifiedDbms()].comment.query
303+
if any((comment or "").startswith(_) for _ in ("--", GENERIC_SQL_COMMENT_MARKER)):
304+
if not GENERIC_SQL_COMMENT.startswith(queries[Backend.getIdentifiedDbms()].comment.query):
305+
comment = queries[Backend.getIdentifiedDbms()].comment.query
305306

306307
if comment is not None:
307308
expression += comment

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.4.2.4"
21+
VERSION = "1.4.2.5"
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)