From 59d08782baf522fa28243e2f92f95edc9e5d9783 Mon Sep 17 00:00:00 2001 From: fr33domlover Date: Fri, 17 Jan 2020 21:52:29 +0000 Subject: [PATCH] Don't html-escape ticket title, it's already escaped --- src/Vervis/Widget/Ticket.hs | 1 + templates/ticket/one.hamlet | 2 +- templates/ticket/widget/summary.hamlet | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Vervis/Widget/Ticket.hs b/src/Vervis/Widget/Ticket.hs index a048c54..28677df 100644 --- a/src/Vervis/Widget/Ticket.hs +++ b/src/Vervis/Widget/Ticket.hs @@ -27,6 +27,7 @@ import Data.HashMap.Lazy (HashMap) import Data.Maybe (mapMaybe) import Data.Text (Text) import Data.Time.Clock (UTCTime) +import Text.Blaze.Html (preEscapedToHtml) import Yesod.Core (MonadHandler, newIdent) import Yesod.Core.Handler (getCurrentRoute, getRequest, YesodRequest (..)) import Yesod.Core.Widget (whamlet) diff --git a/templates/ticket/one.hamlet b/templates/ticket/one.hamlet index 0d3a57d..9e82c78 100644 --- a/templates/ticket/one.hamlet +++ b/templates/ticket/one.hamlet @@ -12,7 +12,7 @@ $# You should have received a copy of the CC0 Public Domain Dedication along $# with this software. If not, see $# . -

#{ticketTitle ticket} +

#{preEscapedToHtml $ ticketTitle ticket}
Created on #{showDate $ ticketCreated ticket} by diff --git a/templates/ticket/widget/summary.hamlet b/templates/ticket/widget/summary.hamlet index 5839a64..23c647d 100644 --- a/templates/ticket/widget/summary.hamlet +++ b/templates/ticket/widget/summary.hamlet @@ -36,7 +36,7 @@ $# . - #{tsTitle ts} + #{preEscapedToHtml $ tsTitle ts} $forall wf <- tsLabels ts $maybe wfcol <- workflowFieldColor wf