aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bn_django/git_browse/templates/git_browse/blob.html2
-rw-r--r--bn_django/git_browse/templates/git_browse/commit.html2
-rw-r--r--bn_django/git_browse/templates/git_browse/full_log.html2
-rw-r--r--bn_django/settings.py1
4 files changed, 4 insertions, 3 deletions
diff --git a/bn_django/git_browse/templates/git_browse/blob.html b/bn_django/git_browse/templates/git_browse/blob.html
index 1fb1437..3730807 100644
--- a/bn_django/git_browse/templates/git_browse/blob.html
+++ b/bn_django/git_browse/templates/git_browse/blob.html
@@ -7,7 +7,7 @@
{{ size|filesizeformat }}<br />
<h3><a href="zip">Download zip</a></h3>
<h3>Raw contents</h3>
- <pre class="large">{{ contents }}</pre>
+ <pre class="large">{{ contents|escape|wordwrap:80 }}</pre>
{% else %}
<h3>No such object: {{ hash }}</h3>
{% endif %} {% endblock %}
diff --git a/bn_django/git_browse/templates/git_browse/commit.html b/bn_django/git_browse/templates/git_browse/commit.html
index 3a1aefd..b4ee4a6 100644
--- a/bn_django/git_browse/templates/git_browse/commit.html
+++ b/bn_django/git_browse/templates/git_browse/commit.html
@@ -22,7 +22,7 @@
<h3>Committer Date</h3>
{{ commit.committer_date }}<br />
{% if commit.rawdiff %}
- <pre class="large">{{ commit.rawdiff }}</pre>
+ <pre class="large">{{ commit.rawdiff|escape|wordwrap:80 }}</pre>
{% else %}No diff{% endif %}
{% else %}
<h3>No such object: {{ hash }}</h3>
diff --git a/bn_django/git_browse/templates/git_browse/full_log.html b/bn_django/git_browse/templates/git_browse/full_log.html
index d2a1311..913a3c4 100644
--- a/bn_django/git_browse/templates/git_browse/full_log.html
+++ b/bn_django/git_browse/templates/git_browse/full_log.html
@@ -11,7 +11,7 @@
<br /><b>Author: </b>{{ item.author }}
<br /><b>Date: </b>{{ item.date }}
<br /><b>Comment: </b>
- <pre class="large">{{ item.comment|wordwrap:80 }}</pre>
+ <pre class="large">{{ item.comment|escape|wordwrap:80 }}</pre>
{% endfor %}
{% endif %}
{% endblock %}
diff --git a/bn_django/settings.py b/bn_django/settings.py
index 55444f7..8041cc1 100644
--- a/bn_django/settings.py
+++ b/bn_django/settings.py
@@ -81,6 +81,7 @@ INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.flatpages',
'django.contrib.markup',
+ 'django.contrib.comments',
'bn_django.photos',
'bn_django.git_wiki',
'bn_django.git_browse',