From 7c996c72ca4b347bee6460aabb8516ea1b53ba81 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 13 Nov 2012 20:16:50 +0100 Subject: [PATCH] Fixed html quoting in contenteditable title. --- .../javascripts/app/controllers/agent_ticket_zoom.js.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/assets/javascripts/app/controllers/agent_ticket_zoom.js.coffee b/app/assets/javascripts/app/controllers/agent_ticket_zoom.js.coffee index 618161758..a214408da 100644 --- a/app/assets/javascripts/app/controllers/agent_ticket_zoom.js.coffee +++ b/app/assets/javascripts/app/controllers/agent_ticket_zoom.js.coffee @@ -335,6 +335,9 @@ class Index extends App.Controller .replace(/<.+?>/g, '') title = ('' + title) .replace(/ /g, ' ') + .replace(/&/g, '&') + .replace(/</g, '<') + .replace(/>/g, '>') if title is '-' title = '' @ticket.title = title