Remove the striptags functionality, fixes some instances of XSS, issue #3

This commit is contained in:
Roberto Rosario
2014-05-22 17:27:06 -04:00
parent 12948c155e
commit 398c480c10
6 changed files with 42 additions and 46 deletions
+4 -4
View File
@@ -1,7 +1,7 @@
{% extends "base.html" %}
{% load subtemplates_tags %}
{% block title %} :: {% with "true" as striptags %}{% include "calculate_form_title.html" %}{% endwith %}{% endblock %}
{% block title %} :: {% include "calculate_form_title.html" %}{% endblock %}
{% block sidebar %}
{% for subtemplate in sidebar_subtemplates_list %}
@@ -25,10 +25,10 @@
{% include "generic_form_subtemplate.html" %}
</div>
{% endif %}
<div class="container_12">
{% for subtemplate in subtemplates_list %}
<div class="grid_{{ subtemplate.grid|default:12 }}">
<div class="grid_{{ subtemplate.grid|default:12 }}">
{% if subtemplate.form %}
{% render_subtemplate subtemplate.name subtemplate.context as rendered_subtemplate %}
<div class="generic_subform">
@@ -40,7 +40,7 @@
{% endif %}
</div>
{% if subtemplate.grid_clear or not subtemplate.grid %}
<div class="clear"></div>
<div class="clear"></div>
{% endif %}
{% endfor %}
</div>