mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 13:14:13 +03:00
Just in case for --force-ssl (if url is returned in e.g. refresh toward the target)
This commit is contained in:
parent
42a73d8e0b
commit
e3a02f56e6
|
@ -276,6 +276,10 @@ class Connect(object):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
elif target:
|
elif target:
|
||||||
|
if conf.forceSSL and urlparse.urlparse(url).scheme != "https":
|
||||||
|
url = re.sub("\Ahttp:", "https:", url, re.I)
|
||||||
|
url = re.sub(":80/", ":443/", url, re.I)
|
||||||
|
|
||||||
if PLACE.GET in conf.parameters and not get:
|
if PLACE.GET in conf.parameters and not get:
|
||||||
get = conf.parameters[PLACE.GET]
|
get = conf.parameters[PLACE.GET]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user