aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/templates
diff options
context:
space:
mode:
authortilly-Q <nattilypigeonfowl@gmail.com>2013-09-12 18:16:25 -0400
committertilly-Q <nattilypigeonfowl@gmail.com>2013-09-12 18:16:25 -0400
commita02831687a6026b2baa0f971ecb3e594c3f415e2 (patch)
treef6840585007ae120297f7a3bfdfe3092c416b65c /mediagoblin/templates
parentc906887025098746ba851f0977a20c7f5f1366ee (diff)
downloadmediagoblin-a02831687a6026b2baa0f971ecb3e594c3f415e2.tar.lz
mediagoblin-a02831687a6026b2baa0f971ecb3e594c3f415e2.tar.xz
mediagoblin-a02831687a6026b2baa0f971ecb3e594c3f415e2.zip
In this next small update, I made a few changes to protect against XXS attacks
in the moderation panel.
Diffstat (limited to 'mediagoblin/templates')
-rw-r--r--mediagoblin/templates/mediagoblin/moderation/report.html12
1 files changed, 5 insertions, 7 deletions
diff --git a/mediagoblin/templates/mediagoblin/moderation/report.html b/mediagoblin/templates/mediagoblin/moderation/report.html
index e597b752..062ec24a 100644
--- a/mediagoblin/templates/mediagoblin/moderation/report.html
+++ b/mediagoblin/templates/mediagoblin/moderation/report.html
@@ -30,8 +30,7 @@
title="Return to Reports Panel">
{% trans %}Return to Reports Panel{% endtrans %}</a>
<h2>{% trans %}Report{% endtrans %} #{{ report.id }}</h2>
- {% if report.is_comment_report() or
- (report.is_archived_report() and report.comment) %}
+ {% if report.comment %}
{% trans %}Reported comment{% endtrans %}:
{% set comment = report.comment %}
@@ -63,8 +62,7 @@
{% endautoescape %}
</div>
</div>
- {% elif report.is_media_entry_report() or
- (report.is_archived_report() and report.media_entry) %}
+ {% elif report.media_entry %}
{% set media_entry = report.media_entry %}
<div class="media_thumbnail">
@@ -137,7 +135,7 @@
init_report_resolution_form();
});
</script>
- {% elif not (report.reported_user.has_privilege('admin')) %}
+ {% elif report.is_archived_report() %}
<h2><img src="{{ request.staticdirect('/images/icon_clipboard.png') }}"
alt="Under a GNU LGPL v.3 or Creative Commons BY-SA 3.0 license.
Distributed by the GNOME project http://www.gnome.org" />
@@ -145,9 +143,9 @@
</h2>
<b>{% trans %}RESOLVED{% endtrans %}</b>
{{ report.resolved.strftime("%I:%M%p %Y-%m-%d") }}
- {% autoescape False %}
+ <pre>
<p>{{ report.result }}</p>
- {% endautoescape %}
+ </pre>
{% else %}
<input type=button disabled=disabled value="Resolve This Report"/>
<p>You cannot take action against an administrator</p>