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 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'budget/templates/forms.html') 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") }} -- cgit v1.1