From 6ec9946a2916b0a8965159f080efee1f2518fa5e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 10 Oct 2019 19:30:25 +0100 Subject: [PATCH] More reserved names --- daemon.py | 2 +- utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon.py b/daemon.py index 79573ca8f..092e23d03 100644 --- a/daemon.py +++ b/daemon.py @@ -1046,7 +1046,7 @@ class PubServer(BaseHTTPRequestHandler): # Show the calendar for a user if htmlGET and '/users/' in self.path: - if '/calendar?' in self.path: + if '/calendar' in self.path: # show the calendar screen msg=htmlCalendar(self.server.translate, \ self.server.baseDir,self.path).encode() diff --git a/utils.py b/utils.py index adabf576b..919feac97 100644 --- a/utils.py +++ b/utils.py @@ -310,7 +310,7 @@ def validNickname(domain: str,nickname: str) -> bool: return False if nickname==domain: return False - reservedNames=['inbox','dm','outbox','following','public','followers','capabilities'] + reservedNames=['inbox','dm','outbox','following','public','followers','capabilities','calendar','tlreplies','tlmedia','moderation'] if nickname in reservedNames: return False return True