merge-requests/20/merge
Bob Mottram 2021-07-28 16:00:28 +01:00
parent 11aa595f55
commit f8a619a97d
2 changed files with 3 additions and 0 deletions

View File

@ -11257,7 +11257,9 @@ class PubServer(BaseHTTPRequestHandler):
# remove a shared item # remove a shared item
if htmlGET and '?rmshare=' in self.path: if htmlGET and '?rmshare=' in self.path:
itemID = self.path.split('?rmshare=')[1] itemID = self.path.split('?rmshare=')[1]
print('Shared item ID 0: ' + itemID)
itemID = urllib.parse.unquote_plus(itemID.strip()) itemID = urllib.parse.unquote_plus(itemID.strip())
print('Shared item ID 1: ' + itemID)
usersPath = self.path.split('?rmshare=')[0] usersPath = self.path.split('?rmshare=')[0]
actor = \ actor = \
self.server.httpPrefix + '://' + \ self.server.httpPrefix + '://' + \

View File

@ -107,6 +107,7 @@ def htmlConfirmRemoveSharedItem(cssCache: {}, translate: {}, baseDir: str,
callingDomain: str) -> str: callingDomain: str) -> str:
"""Shows a screen asking to confirm the removal of a shared item """Shows a screen asking to confirm the removal of a shared item
""" """
print('Shared item ID 2: ' + itemID)
nickname = getNicknameFromActor(actor) nickname = getNicknameFromActor(actor)
domain, port = getDomainFromActor(actor) domain, port = getDomainFromActor(actor)
domainFull = getFullDomain(domain, port) domainFull = getFullDomain(domain, port)