Web: autoescape in all templates

This commit is contained in:
Brian S. Stephan 2011-02-20 13:45:39 -06:00
parent d2a6267d95
commit ca0ee4ce41
8 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,4 @@
{% autoescape on %}
<ul> <ul>
{% for user in users %} {% for user in users %}
<li> <li>
@ -5,3 +6,4 @@
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
{% endautoescape %}

View File

@ -1,4 +1,6 @@
{% autoescape on %}
<ul> <ul>
<li><a href="/karma/stats/">Karma Stats</a> ({{ value_count }} karma entries)</li> <li><a href="/karma/stats/">Karma Stats</a> ({{ value_count }} karma entries)</li>
<li><a href="/karma/givers/">Karma Giver Stats</a> ({{ user_count }} karma givers)</li> <li><a href="/karma/givers/">Karma Giver Stats</a> ({{ user_count }} karma givers)</li>
</ul> </ul>
{% endautoescape %}

View File

@ -1,3 +1,4 @@
{% autoescape on %}
<ol> <ol>
{% for value in values %} {% for value in values %}
<li> <li>
@ -5,3 +6,4 @@
</li> </li>
{% endfor %} {% endfor %}
</ol> </ol>
{% endautoescape %}

View File

@ -1,3 +1,4 @@
{% autoescape on %}
<!DOCTYPE html> <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head> <head>
@ -45,3 +46,4 @@
<!-- <!--
vi:tabstop=2:expandtab:autoindent vi:tabstop=2:expandtab:autoindent
--> -->
{% endautoescape %}

View File

@ -1,3 +1,4 @@
{% autoescape on %}
<!DOCTYPE html> <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head> <head>
@ -50,3 +51,4 @@
<!-- <!--
vi:tabstop=2:expandtab:autoindent vi:tabstop=2:expandtab:autoindent
--> -->
{% endautoescape %}

View File

@ -1,3 +1,4 @@
{% autoescape on %}
<div id="footer"> <div id="footer">
<p>Storycraft is a game of collaborative storytelling, intentionally leading to much insanity and nonsense. All stories were made to be funny but may not even be coherent. Void where prohibited.</p> <p>Storycraft is a game of collaborative storytelling, intentionally leading to much insanity and nonsense. All stories were made to be funny but may not even be coherent. Void where prohibited.</p>
</div> </div>
@ -5,3 +6,4 @@
<!-- <!--
vi:tabstop=2:expandtab:autoindent vi:tabstop=2:expandtab:autoindent
--> -->
{% endautoescape %}

View File

@ -1,3 +1,4 @@
{% autoescape on %}
<div class="storyblock"> <div class="storyblock">
{% if game.is_completed %} {% if game.is_completed %}
<div class="gamestory"> <div class="gamestory">
@ -17,3 +18,4 @@
<!-- <!--
vi:tabstop=2:expandtab:autoindent vi:tabstop=2:expandtab:autoindent
--> -->
{% endautoescape %}

View File

@ -1,3 +1,4 @@
{% autoescape on %}
<div class="gameitem"> <div class="gameitem">
<ul class="gameinfo"> <ul class="gameinfo">
<li class="gameid"><span><a href="{% url game_index game.id %}">{{ game.id }} &mdash; started by {{ game.owner_nick }}</a></span></li> <li class="gameid"><span><a href="{% url game_index game.id %}">{{ game.id }} &mdash; started by {{ game.owner_nick }}</a></span></li>
@ -22,3 +23,4 @@
<!-- <!--
vi:tabstop=2:expandtab:autoindent vi:tabstop=2:expandtab:autoindent
--> -->
{% endautoescape %}