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

Skip to content

Commit 9387a00

Browse files
committed
Fixes #3548
1 parent 9dcd18e commit 9387a00

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/core/option.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,14 +1148,14 @@ def _setSafeVisit():
11481148
checkFile(conf.safeReqFile)
11491149

11501150
raw = readCachedFileContent(conf.safeReqFile)
1151-
match = re.search(r"\A([A-Z]+) ([^ ]+) HTTP/[0-9.]+\Z", raw[:raw.find('\n')])
1151+
match = re.search(r"\A([A-Z]+) ([^ ]+) HTTP/[0-9.]+\Z", raw.split('\n')[0].strip())
11521152

11531153
if match:
11541154
kb.safeReq.method = match.group(1)
11551155
kb.safeReq.url = match.group(2)
11561156
kb.safeReq.headers = {}
11571157

1158-
for line in raw[raw.find('\n') + 1:].split('\n'):
1158+
for line in raw.split('\n')[1:]:
11591159
line = line.strip()
11601160
if line and ':' in line:
11611161
key, value = line.split(':', 1)

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.3.3.45"
22+
VERSION = "1.3.3.46"
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)

0 commit comments

Comments
 (0)