fix: Add restricted link names
All checks were successful
Build Docker / Build Main Image (push) Successful in 19s

This commit is contained in:
Nathan Woodburn 2023-11-18 21:54:04 +11:00
parent 031e07e2ff
commit 073cb47f00
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -129,6 +129,8 @@ def add_link():
# Verify link is not taken # Verify link is not taken
if db.get_link(link) != False: if db.get_link(link) != False:
return error('Link already taken') return error('Link already taken')
if link in ['dash','login','logout','404','assets']:
return error('Link already taken')
# Add link # Add link
db.add_link(link,url,domain) db.add_link(link,url,domain)