mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
Fix /editprofile bug
This commit is contained in:
parent
552fb439d1
commit
1142227b42
1 changed files with 0 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue