mirror of
https://github.com/couchfault/sslstrip2.git
synced 2025-10-29 16:56:59 +00:00
fixed redirection loop
This commit is contained in:
@@ -58,6 +58,11 @@ class URLMonitor:
|
|||||||
methodIndex = url.find("//") + 2
|
methodIndex = url.find("//") + 2
|
||||||
method = url[0:methodIndex]
|
method = url[0:methodIndex]
|
||||||
pathIndex = url.find("/", methodIndex)
|
pathIndex = url.find("/", methodIndex)
|
||||||
|
|
||||||
|
if pathIndex is -1:
|
||||||
|
pathIndex = len(url)
|
||||||
|
url += "/"
|
||||||
|
|
||||||
host = url[methodIndex:pathIndex].lower()
|
host = url[methodIndex:pathIndex].lower()
|
||||||
path = url[pathIndex:]
|
path = url[pathIndex:]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user