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
|
# redirect to the welcome screen
|
||||||
if htmlGET and authorized and usersInPath and \
|
if htmlGET and authorized and usersInPath and \
|
||||||
not self.path.endswith('/welcome'):
|
'/welcome' not in self.path:
|
||||||
nickname = self.path.split('/users/')[1]
|
nickname = self.path.split('/users/')[1]
|
||||||
if '/' in nickname:
|
if '/' in nickname:
|
||||||
nickname = nickname.split('/')[0]
|
nickname = nickname.split('/')[0]
|
||||||
|
|
3
utils.py
3
utils.py
|
@ -1273,7 +1273,8 @@ def _isReservedName(nickname: str) -> bool:
|
||||||
'likes', 'users', 'statuses', 'tags',
|
'likes', 'users', 'statuses', 'tags',
|
||||||
'accounts', 'channels', 'profile', 'u',
|
'accounts', 'channels', 'profile', 'u',
|
||||||
'updates', 'repeat', 'announce',
|
'updates', 'repeat', 'announce',
|
||||||
'shares', 'fonts', 'icons', 'avatars')
|
'shares', 'fonts', 'icons', 'avatars',
|
||||||
|
'welcome')
|
||||||
if nickname in reservedNames:
|
if nickname in reservedNames:
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue