1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Fix /editprofile bug

This commit is contained in:
Steffo 2019-02-17 21:49:45 +01:00
parent 552fb439d1
commit 1142227b42

View file

@ -200,11 +200,9 @@ def page_editprofile():
elif request.method == "POST":
css = request.form.get("css", "")
bio = request.form.get("bio", "")
email = request.form.get("email")
if "</style" in css:
abort(400)
return
royal.email = email
if profile_data is None:
profile_data = db.ProfileData(royal=royal, css=css, bio=bio)
fl_g.session.add(profile_data)