Skip to content

Commit 91bffe9

Browse files
committed
Minor patch
1 parent 220dffb commit 91bffe9

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

lib/core/option.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1488,8 +1488,8 @@ def _setHTTPUserAgent():
14881488

14891489
userAgent = random.sample(kb.userAgents or [_defaultHTTPUserAgent()], 1)[0]
14901490

1491-
infoMsg = "fetched random HTTP User-Agent header from "
1492-
infoMsg += "file '%s': '%s'" % (paths.USER_AGENTS, userAgent)
1491+
infoMsg = "fetched random HTTP User-Agent header value '%s' from " % userAgent
1492+
infoMsg += "file '%s'" % paths.USER_AGENTS
14931493
logger.info(infoMsg)
14941494

14951495
conf.httpHeaders.append((HTTP_HEADER.USER_AGENT, userAgent))
@@ -1661,6 +1661,9 @@ def _cleanupOptions():
16611661
if conf.delay:
16621662
conf.delay = float(conf.delay)
16631663

1664+
if conf.url:
1665+
conf.url = conf.url.strip()
1666+
16641667
if conf.rFile:
16651668
conf.rFile = ntToPosixSlashes(normalizePath(conf.rFile))
16661669

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.enums import OS
2020

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

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ d3ed5f9baa074df33390d33164d9d8b5 lib/core/defaults.py
4040
5fb9aaf874daa47ea2b672a22740e56b lib/core/__init__.py
4141
f872699e948d0692ce11b54781da814c lib/core/log.py
4242
5adb07b2771f26822e94c75c2cb9db0b lib/core/optiondict.py
43-
e1c000db9be27f973569b1a430629037 lib/core/option.py
43+
3775628ac4ee0e4e2d0247cd93de05aa lib/core/option.py
4444
8764d2d8610fff5f4aef897b2b1f1006 lib/core/profiling.py
4545
2de91262fcc6bd51c987fd2f8a59ff31 lib/core/readlineng.py
4646
760d9df2a27ded29109b390ab202e72d lib/core/replication.py
4747
a2466b62e67f8b31736bac4dac590e51 lib/core/revision.py
4848
02d4762140a72fd44668d3dab5eabda9 lib/core/session.py
49-
faf4f1fadbe9ab2c911e8e8b9e382c11 lib/core/settings.py
49+
224b57f959c54810598ac661872aa3cf lib/core/settings.py
5050
35bffbad762eb9e03db9e93b1c991103 lib/core/shell.py
5151
a59ec28371ae067a6fdd8f810edbee3d lib/core/subprocessng.py
5252
d93501771b41315f9fb949305b6ed257 lib/core/target.py

0 commit comments

Comments
 (0)