From 0f58390e67268788aaa48fd7920d88b7a2537acc Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 9 Jan 2023 23:15:14 +0000 Subject: [PATCH] Debug --- daemon.py | 1 + webfinger.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/daemon.py b/daemon.py index fa2fc9763..b218817e6 100644 --- a/daemon.py +++ b/daemon.py @@ -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, diff --git a/webfinger.py b/webfinger.py index b9686d387..af2cb737b 100644 --- a/webfinger.py +++ b/webfinger.py @@ -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]