From: Kohei Yoshino Date: Wed, 8 Apr 2020 17:47:49 +0000 (-0400) Subject: Bug 1627601 - Copy Summary function doesn’t work properly if the bug summary contains... X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bb99d412f00b1127982955a64d51c9d96da3d275;p=thirdparty%2Fbugzilla.git Bug 1627601 - Copy Summary function doesn’t work properly if the bug summary contains HTML tags --- 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')) {