From 6e6c4f19bc7cf695a5af845da2551e3b25ab11dd Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 9 Dec 2020 23:01:12 +0000 Subject: [PATCH] Get handle --- daemon.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/daemon.py b/daemon.py index 5691cd80a..605508adf 100644 --- a/daemon.py +++ b/daemon.py @@ -1441,8 +1441,13 @@ class PubServer(BaseHTTPRequestHandler): moderationText = \ urllib.parse.unquote_plus(modText.strip()) elif moderationStr.startswith('submitInfo'): - searchHandle = \ - urllib.parse.unquote_plus(moderationStr.strip()) + searchHandle = None + if '=' in moderationStr: + moderationText = \ + moderationStr.split('=')[1].strip() + modText = moderationText.replace('+', ' ') + searchHandle = \ + urllib.parse.unquote_plus(modText.strip()) if searchHandle: if '@' not in searchHandle: searchHandle = None