From 221862705e042213c336ee6a697fe1a373d4c325 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 21 Sep 2021 13:48:40 +0100 Subject: [PATCH] Return to ? --- daemon.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/daemon.py b/daemon.py index 37fc2c7ec..f22829ee0 100644 --- a/daemon.py +++ b/daemon.py @@ -12590,13 +12590,13 @@ class PubServer(BaseHTTPRequestHandler): # after selecting a shared item from the left column then show it if htmlGET and '?showshare=' in self.path and '/users/' in self.path: itemID = self.path.split('?showshare=')[1] - if ';' in itemID: - itemID = itemID.split(';')[0] + if '?' in itemID: + itemID = itemID.split('?')[0] category = '' - if ';category=' in self.path: - category = self.path.split(';category=')[1] - if ';' in category: - category = category.split(';')[0] + if '?category=' in self.path: + category = self.path.split('?category=')[1] + if '?' in category: + category = category.split('?')[0] usersPath = self.path.split('?showshare=')[0] nickname = usersPath.replace('/users/', '') itemID = urllib.parse.unquote_plus(itemID.strip())