From 7e3d02561c53b079e580d83438ccf58376448a1a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 9 Jan 2023 22:18:31 +0000 Subject: [PATCH] Protocol handler parsing --- webfinger.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webfinger.py b/webfinger.py index 39f758018..b4c8dc04a 100644 --- a/webfinger.py +++ b/webfinger.py @@ -268,6 +268,8 @@ def wellknown_protocol_handler(path: str, base_dir: str, if not target.startswith('web+epicyon:'): return None handle = target.split(':', 1)[1].strip() + if handle.startswith('//'): + handle = handle[2:] if handle.startswith('@'): handle = handle[1:] if '@' in handle: