# HG changeset patch # User Marcin Lulek # Date 2017-06-20 17:09:02 # Node ID fcaa19d486e811da07ff41608fdad7583cfed595 # Parent fdf0761cfc0185d7885c04d86f880427696012d7 security: don't use literal in notifications. - exposes security problems - we don't store any html anyway in the subject diff --git a/rhodecode/templates/admin/notifications/show_notification.mako b/rhodecode/templates/admin/notifications/show_notification.mako --- a/rhodecode/templates/admin/notifications/show_notification.mako +++ b/rhodecode/templates/admin/notifications/show_notification.mako @@ -9,7 +9,7 @@ <%def name="breadcrumbs_links()"> - ${h.link_to(_('Notifications'),h.url('notifications'))} + ${h.link_to(_('Notifications'), h.url('notifications'))} » ${_('Show notification')} @@ -23,11 +23,6 @@
${self.breadcrumbs()} - ##
@@ -41,7 +36,9 @@
-
${h.literal(c.notification.subject)}
+
+

${_('Subject')}: ${c.notification.subject}

+
%if c.notification.body: ${h.render(c.notification.body, renderer=c.visual.default_renderer, mentions=True)} %endif