From 28b3d5b0200cdf29724bbaa367360468f08660cd Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 28 Jul 2021 20:05:19 +0100 Subject: [PATCH] Get nickname from path --- daemon.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/daemon.py b/daemon.py index 38569277f..e72e4f264 100644 --- a/daemon.py +++ b/daemon.py @@ -11256,13 +11256,14 @@ class PubServer(BaseHTTPRequestHandler): 'blog post 2 done') # after selecting a shared item from the left column then show it - if htmlGET and '?showshare=' in self.path: + if htmlGET and '?showshare=' in self.path and '/users/' in self.path: itemID = self.path.split('?showshare=')[1] usersPath = self.path.split('?showshare=')[0] + nickname = usersPath.replace('/users/', '') itemID = urllib.parse.unquote_plus(itemID.strip()) msg = \ htmlShowShare(self.server.baseDir, - self.server.domain, self.server.nickname, + self.server.domain, nickname, self.server.httpPrefix, self.server.domainFull, itemID, self.server.translate, self.server.sharedItemsFederatedDomains)