mirror of https://gitlab.com/bashrc2/epicyon
Extra reserved name
parent
307d386cc3
commit
bcc59bac97
|
@ -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]
|
||||
|
|
3
utils.py
3
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
|
||||
|
|
Loading…
Reference in New Issue