From 8d2530156576ea91103cc33b9771f0da658006a4 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 4 Jun 2018 23:37:48 +0200 Subject: [PATCH 1/2] Fix title --- templates/profile.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/profile.html b/templates/profile.html index 5ed951af..0c2c4711 100644 --- a/templates/profile.html +++ b/templates/profile.html @@ -1,7 +1,7 @@ {% extends 'base.html' %} {% block pagetitle %} - Royal Games + {{ royal.username }} {% endblock %} {% block body %} From 06ea2df92c8dd6b97f1c7345f465992969f78ed8 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 5 Jun 2018 15:11:58 +0200 Subject: [PATCH 2/2] do not escape css --- templates/profile.html | 4 +++- webserver.py | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/templates/profile.html b/templates/profile.html index dd67a638..d91997c0 100644 --- a/templates/profile.html +++ b/templates/profile.html @@ -7,7 +7,9 @@ {% block posthead %} {% if css %} {% endif %} {% endblock %} diff --git a/webserver.py b/webserver.py index cffc671b..5f874ea1 100644 --- a/webserver.py +++ b/webserver.py @@ -107,8 +107,12 @@ def page_setcss(): if user_id is None: abort(403) return + css = request.form.get("css", "") + if "