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

Skip to content

Commit 255dce8

Browse files
committed
Fixes #4712
1 parent 7c7c338 commit 255dce8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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.six import unichr as _unichr
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.5.6.2"
23+
VERSION = "1.5.6.3"
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)

lib/request/connect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ class _(dict):
626626
if conn:
627627
code = (code or conn.code) if conn.code == kb.originalCode else conn.code # do not override redirection code (for comparison purposes)
628628
responseHeaders = conn.info()
629-
responseHeaders[URI_HTTP_HEADER] = conn.geturl()
629+
responseHeaders[URI_HTTP_HEADER] = conn.geturl() if hasattr(conn, "geturl") else url
630630

631631
if hasattr(conn, "redurl"):
632632
responseHeaders[HTTP_HEADER.LOCATION] = conn.redurl

0 commit comments

Comments
 (0)