sanity check

master
justcool393 2022-11-06 21:33:37 -06:00
parent 54fecd99e5
commit 424e9bc0ae
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ def settings_personal_post(v):
# end common selectors #
background = request.values.get("background", v.background)
if background != v.background and not ".." in background and background.endswith(".webp") and len(background) < 20 and os.path.isfile(background):
if background != v.background and not ".." in background and background.endswith(".webp") and len(background) < 20 and os.path.isfile(f"/assets/images/backgrounds/{background}"):
v.background = request.values.get("background")
updated = True
elif request.values.get("reddit", v.reddit) != v.reddit: