merge-requests/30/head
Bob Mottram 2023-01-09 23:15:14 +00:00
parent bbbe6b21ea
commit 0f58390e67
2 changed files with 4 additions and 0 deletions

View File

@ -18079,6 +18079,7 @@ class PubServer(BaseHTTPRequestHandler):
if html_getreq and self.path != '/login' and \
not is_image_file(self.path) and \
self.path != '/' and \
not self.path.startswith('/.well-known/protocol-handler') and \
self.path != '/users/news/linksmobile' and \
self.path != '/users/news/newswiremobile':
if self._redirect_to_login_screen(calling_domain, self.path,

View File

@ -259,8 +259,11 @@ def wellknown_protocol_handler(path: str, base_dir: str,
if not path.startswith('/.well-known/protocol-handler?'):
return None
print('Test1: ' + path)
if 'target=' in path:
path = urllib.parse.unquote(path)
print('Test1: ' + path)
target = path.split('target=')[1]
if ';' in target:
target = target.split(';')[0]