From bcc59bac97e22f9a7b8d0d2763c38e3711dd609c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 25 Feb 2021 18:33:35 +0000 Subject: [PATCH] Extra reserved name --- daemon.py | 2 +- utils.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/daemon.py b/daemon.py index 76ed6d7b9..7fd7523cc 100644 --- a/daemon.py +++ b/daemon.py @@ -10375,7 +10375,7 @@ class PubServer(BaseHTTPRequestHandler): # redirect to the welcome screen if htmlGET and authorized and usersInPath and \ - not self.path.endswith('/welcome'): + '/welcome' not in self.path: nickname = self.path.split('/users/')[1] if '/' in nickname: nickname = nickname.split('/')[0] diff --git a/utils.py b/utils.py index 8f2348062..25499145e 100644 --- a/utils.py +++ b/utils.py @@ -1273,7 +1273,8 @@ def _isReservedName(nickname: str) -> bool: 'likes', 'users', 'statuses', 'tags', 'accounts', 'channels', 'profile', 'u', 'updates', 'repeat', 'announce', - 'shares', 'fonts', 'icons', 'avatars') + 'shares', 'fonts', 'icons', 'avatars', + 'welcome') if nickname in reservedNames: return True return False