main
Bob Mottram 2020-07-11 16:54:58 +01:00
parent cb533b1222
commit 4b5040890a
1 changed files with 6 additions and 0 deletions

View File

@ -3090,6 +3090,12 @@ class PubServer(BaseHTTPRequestHandler):
# delete a post from the web interface icon
if htmlGET and '?delete=' in self.path:
if not cookie:
print('ERROR: no cookie given when deleting')
self._400()
self.server.GETbusy = False
return
print('Cookie for delete: ' + str(cookie))
pageNumber = 1
if '?page=' in self.path:
pageNumberStr = self.path.split('?page=')[1]