mirror of https://gitlab.com/bashrc2/epicyon
Return to ?
parent
7c3506d990
commit
221862705e
12
daemon.py
12
daemon.py
|
@ -12590,13 +12590,13 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
# after selecting a shared item from the left column then show it
|
# after selecting a shared item from the left column then show it
|
||||||
if htmlGET and '?showshare=' in self.path and '/users/' in self.path:
|
if htmlGET and '?showshare=' in self.path and '/users/' in self.path:
|
||||||
itemID = self.path.split('?showshare=')[1]
|
itemID = self.path.split('?showshare=')[1]
|
||||||
if ';' in itemID:
|
if '?' in itemID:
|
||||||
itemID = itemID.split(';')[0]
|
itemID = itemID.split('?')[0]
|
||||||
category = ''
|
category = ''
|
||||||
if ';category=' in self.path:
|
if '?category=' in self.path:
|
||||||
category = self.path.split(';category=')[1]
|
category = self.path.split('?category=')[1]
|
||||||
if ';' in category:
|
if '?' in category:
|
||||||
category = category.split(';')[0]
|
category = category.split('?')[0]
|
||||||
usersPath = self.path.split('?showshare=')[0]
|
usersPath = self.path.split('?showshare=')[0]
|
||||||
nickname = usersPath.replace('/users/', '')
|
nickname = usersPath.replace('/users/', '')
|
||||||
itemID = urllib.parse.unquote_plus(itemID.strip())
|
itemID = urllib.parse.unquote_plus(itemID.strip())
|
||||||
|
|
Loading…
Reference in New Issue