Unquote search handle

merge-requests/8/head
Bob Mottram 2020-12-10 10:24:25 +00:00
parent 3aa245d5b9
commit 39873ede20
1 changed files with 2 additions and 0 deletions

View File

@ -11008,6 +11008,7 @@ class PubServer(BaseHTTPRequestHandler):
return
blockDomain = self.path.split('/accountinfo?blockdomain=')[1]
searchHandle = blockDomain.split('?handle=')[1]
searchHandle = urllib.parse.unquote_plus(searchHandle)
blockDomain = blockDomain.split('?handle=')[0]
blockDomain = urllib.parse.unquote_plus(blockDomain.strip())
if '?' in blockDomain:
@ -11042,6 +11043,7 @@ class PubServer(BaseHTTPRequestHandler):
return
blockDomain = self.path.split('/accountinfo?unblockdomain=')[1]
searchHandle = blockDomain.split('?handle=')[1]
searchHandle = urllib.parse.unquote_plus(searchHandle)
blockDomain = blockDomain.split('?handle=')[0]
blockDomain = urllib.parse.unquote_plus(blockDomain.strip())
removeGlobalBlock(self.server.baseDir, nickname, blockDomain)