From 29a7646334084e2aab056ff68a2b5eee4eca7252 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 12 Jan 2021 16:55:15 +0100 Subject: [PATCH] Trivial update --- lib/core/common.py | 6 ++++++ lib/core/settings.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/core/common.py b/lib/core/common.py index 2b85b4cff..47647b83d 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -1831,6 +1831,9 @@ def getLimitRange(count, plusOne=False): def parseUnionPage(page): """ Returns resulting items from UNION query inside provided page content + + >>> parseUnionPage("%sfoo%s%sbar%s" % (kb.chars.start, kb.chars.stop, kb.chars.start, kb.chars.stop)) + ['foo', 'bar'] """ if page is None: @@ -2064,6 +2067,9 @@ def safeFilepathEncode(filepath): def safeExpandUser(filepath): """ Patch for a Python Issue18171 (http://bugs.python.org/issue18171) + + >>> os.path.basename(__file__) in safeExpandUser(__file__) + True """ retVal = filepath diff --git a/lib/core/settings.py b/lib/core/settings.py index 00a8789c2..cb6081dfe 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -18,7 +18,7 @@ from lib.core.enums import OS from thirdparty.six import unichr as _unichr # sqlmap version (...) -VERSION = "1.5.1.25" +VERSION = "1.5.1.26" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)