fix: Add restricted link names
All checks were successful
Build Docker / Build Main Image (push) Successful in 19s
All checks were successful
Build Docker / Build Main Image (push) Successful in 19s
This commit is contained in:
parent
031e07e2ff
commit
073cb47f00
2
main.py
2
main.py
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user