More reserved nicknames

main
bashrc 2026-05-09 11:01:52 +01:00
parent a7d095fa7b
commit 2bd07a0d12
2 changed files with 6 additions and 5 deletions

View File

@ -6738,7 +6738,7 @@ def download_announce(session, base_dir: str, http_prefix: str,
str(announced_json['object']['id']))
return None
post_json_object = announced_json
post_json_object: dict = announced_json
replace_you_tube(post_json_object, yt_replace_domain, system_language)
replace_twitter(post_json_object, twitter_replacement_domain,
system_language)

View File

@ -2537,9 +2537,10 @@ def _is_reserved_name(nickname: str) -> bool:
"""Is the given nickname reserved for some special function?
"""
reserved_names: list[str] = (
'users', 'accounts', 'profile', 'statuses',
'search', 'channel',
'http', 'https', 'ipfs', 'ipns'
'users', 'accounts', 'profile', 'statuses', 'packs', 'backend',
'search', 'channel', 'config', 'settings', 'credentials', 'apis',
'http', 'https', 'ipfs', 'ipns', 'laravel', 'js', 'root', 'webmail',
'mail', 'statistics'
)
if nickname in reserved_names:
return True
@ -4072,7 +4073,7 @@ def check_bad_path(path: str, allow_local_network_access: bool):
bad_strings: list[str] = [
'..', '/.', '%2e%2e', '%252e%252e', '/sftp.', '/sftp-', '/statistics',
'/config/', 'settings.', 'credentials', '/packs/', '/backend/',
'/apis/', '/laravel/', '/js/', '/root/'
'/apis/', '/laravel/', '/js/', '/root/', '/webmail/', '/mail/'
]
# allow /.well-known/...