Return to ?

main
Bob Mottram 2021-09-21 13:48:40 +01:00
parent 7c3506d990
commit 221862705e
1 changed files with 6 additions and 6 deletions

View File

@ -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())