From baba943e623ba5d1f12f579e87d04c6cb65fb061 Mon Sep 17 00:00:00 2001 From: Alexandre Avenel Date: Thu, 16 Feb 2017 23:11:30 +0100 Subject: Fix xss (#173) Fix #173 Rewrite multi select widget as a template in order to have all values properly escaped. --- budget/templates/forms.html | 13 ++++++++++++- budget/templates/list_bills.html | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) (limited to 'budget/templates') diff --git a/budget/templates/forms.html b/budget/templates/forms.html index af24fe2..8698e37 100644 --- a/budget/templates/forms.html +++ b/budget/templates/forms.html @@ -85,7 +85,18 @@ {{ input(form.what, inline=True) }} {{ input(form.payer, inline=True, class="form-control custom-select") }} {{ input(form.amount, inline=True) }} - {{ input(form.payed_for, inline=True, class="form-check-input") }} + +
+ +
+ +
+
{{ form.submit(class="btn btn-primary") }} diff --git a/budget/templates/list_bills.html b/budget/templates/list_bills.html index 9421650..a9af4de 100644 --- a/budget/templates/list_bills.html +++ b/budget/templates/list_bills.html @@ -107,7 +107,7 @@ {{ _("When?") }}{{ _("Who paid?") }}{{ _("For what?") }}{{ _("For whom?") }}{{ _("How much?") }}{{ _("Actions") }} {% for bill in bills %} - + {{ bill.date }} {{ bill.payer }} {{ bill.what }} -- cgit v1.1