From bb99d412f00b1127982955a64d51c9d96da3d275 Mon Sep 17 00:00:00 2001 From: Kohei Yoshino Date: Wed, 8 Apr 2020 13:47:49 -0400 Subject: [PATCH] =?utf8?q?Bug=201627601=20-=20Copy=20Summary=20function=20?= =?utf8?q?doesn=E2=80=99t=20work=20properly=20if=20the=20bug=20summary=20c?= =?utf8?q?ontains=20HTML=20tags?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- extensions/BugModal/web/bug_modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/BugModal/web/bug_modal.js b/extensions/BugModal/web/bug_modal.js index b3fc875f4..ba06a0b6d 100644 --- a/extensions/BugModal/web/bug_modal.js +++ b/extensions/BugModal/web/bug_modal.js @@ -404,7 +404,7 @@ $(function() { if (hasExecCopy) { const url = BUGZILLA.bug_url; const text = `Bug ${BUGZILLA.bug_id} - ${BUGZILLA.bug_summary}`; - const html = `${text}`; + const html = `${text.htmlEncode()}`; document.addEventListener('copy', event => { if (event.target.nodeType === 1 && event.target.matches('#clip')) { -- 2.47.3