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":
|
elif request.method == "POST":
|
||||||
css = request.form.get("css", "")
|
css = request.form.get("css", "")
|
||||||
bio = request.form.get("bio", "")
|
bio = request.form.get("bio", "")
|
||||||
email = request.form.get("email")
|
|
||||||
if "</style" in css:
|
if "</style" in css:
|
||||||
abort(400)
|
abort(400)
|
||||||
return
|
return
|
||||||
royal.email = email
|
|
||||||
if profile_data is None:
|
if profile_data is None:
|
||||||
profile_data = db.ProfileData(royal=royal, css=css, bio=bio)
|
profile_data = db.ProfileData(royal=royal, css=css, bio=bio)
|
||||||
fl_g.session.add(profile_data)
|
fl_g.session.add(profile_data)
|
||||||
|
|
Loading…
Reference in a new issue