This commit is contained in:
Aevann1 2022-01-16 08:06:16 +02:00
parent c0f3d5cb68
commit d1edad9965
49 changed files with 117 additions and 118 deletions

View file

@ -270,7 +270,7 @@ def settings_profile_post(v):
if url.endswith('.'): url += 'mp4'
bio += f"\n\n{url}"
else:
if request.headers.get("Authorization"): return {"error": "Image/Video files only"}, 400
if request.headers.get("Authorization") or request.headers.get("xhr"): return {"error": "Image/Video files only"}, 400
return render_template("settings_profile.html", v=v, error="Image/Video files only."), 400
bio_html = sanitize(bio)