Protocol handler parsing

main
Bob Mottram 2023-01-09 22:18:31 +00:00
parent c6e090dc98
commit 7e3d02561c
1 changed files with 2 additions and 0 deletions

View File

@ -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: