Replace codes

main2
Bob Mottram 2019-11-03 09:39:02 +00:00
parent 44b5c569b9
commit ee73e5866c
1 changed files with 1 additions and 0 deletions

View File

@ -731,6 +731,7 @@ class PubServer(BaseHTTPRequestHandler):
# remove a shared item
if htmlGET and '?rmshare=' in self.path:
shareName=self.path.split('?rmshare=')[1]
shareName=shareName.replace('%20',' ').replace('%40','@').replace('%3A',':').replace('%23','#')
actor=self.server.httpPrefix+'://'+self.server.domainFull+self.path.split('?rmshare=')[0]
msg=htmlRemoveSharedItem(self.server.translate,self.server.baseDir,actor,shareName).encode()
if not msg: