Make sure host is valid for qute:// redirects
This commit is contained in:
parent
c82bd83715
commit
9d2734ff62
@ -146,7 +146,8 @@ def data_for_url(url):
|
||||
new_url.setScheme('qute')
|
||||
new_url.setHost(path)
|
||||
new_url.setPath('/')
|
||||
raise Redirect(new_url)
|
||||
if new_url.host(): # path was a valid host
|
||||
raise Redirect(new_url)
|
||||
|
||||
try:
|
||||
handler = _HANDLERS[host]
|
||||
|
Loading…
Reference in New Issue
Block a user