From e97b2281f1129d57f4f6607d48e2fc092c740aa8 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 5 Aug 2020 22:29:26 +0100 Subject: [PATCH] Redirect path is relative --- daemon.py | 6 +++--- person.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/daemon.py b/daemon.py index 48319b85b..89b0ad273 100644 --- a/daemon.py +++ b/daemon.py @@ -7809,7 +7809,7 @@ class PubServer(BaseHTTPRequestHandler): chooserNickname, self.server.domain, handle, petname) - self._redirect_headers(originPathStr + '/' + + self._redirect_headers(usersPath + '/' + self.server.defaultTimeline + '?page='+str(pageNumber), cookie, callingDomain) @@ -7825,7 +7825,7 @@ class PubServer(BaseHTTPRequestHandler): chooserNickname, self.server.domain, handle, personNotes) - self._redirect_headers(originPathStr + '/' + + self._redirect_headers(usersPath + '/' + self.server.defaultTimeline + '?page='+str(pageNumber), cookie, callingDomain) @@ -7849,7 +7849,7 @@ class PubServer(BaseHTTPRequestHandler): self.server.domain, optionsNickname, optionsDomainFull) - self._redirect_headers(originPathStr + '/' + + self._redirect_headers(usersPath + '/' + self.server.defaultTimeline + '?page='+str(pageNumber), cookie, callingDomain) diff --git a/person.py b/person.py index 08ec19f59..2519a426e 100644 --- a/person.py +++ b/person.py @@ -1089,7 +1089,7 @@ def setPersonNotes(baseDir: str, nickname: str, domain: str, nickname + '@' + domain + '/notes' if not os.path.isdir(notesDir): os.mkdir(notesDir) - notesFilename = notesDir + '/' + handle + '.txt' + notesFilename = notesDir + '/' + handle + '.txt' with open(notesFilename, 'w+') as notesFile: notesFile.write(notes) return True