From 17eafa184428864730475949c134a9240f4e9985 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 2 Jun 2022 11:51:55 +0100 Subject: [PATCH] Use separator --- webapp_post.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp_post.py b/webapp_post.py index a33724e4d..5229cacdc 100644 --- a/webapp_post.py +++ b/webapp_post.py @@ -1541,8 +1541,8 @@ def _substitute_onion_domains(base_dir: str, content: str) -> str: for sep in separators: if sep not in line: continue - clearnet = line.split(' ', 1)[0].strip() - onion = line.split(' ', 1)[1].strip().replace('\n', '') + clearnet = line.split(sep, 1)[0].strip() + onion = line.split(sep, 1)[1].strip().replace('\n', '') if clearnet and onion: onion_domains[clearnet] = onion break