]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1627601 - Copy Summary function doesn’t work properly if the bug summary contains...
authorKohei Yoshino <kohei.yoshino@gmail.com>
Wed, 8 Apr 2020 17:47:49 +0000 (13:47 -0400)
committerGitHub <noreply@github.com>
Wed, 8 Apr 2020 17:47:49 +0000 (13:47 -0400)
extensions/BugModal/web/bug_modal.js

index b3fc875f45558659de47d6dfc714d325bcbe0261..ba06a0b6deae7ef61b19fb0936410d5dfd5649af 100644 (file)
@@ -404,7 +404,7 @@ $(function() {
         if (hasExecCopy) {
             const url = BUGZILLA.bug_url;
             const text = `Bug ${BUGZILLA.bug_id} - ${BUGZILLA.bug_summary}`;
-            const html = `<a href="${url}">${text}</a>`;
+            const html = `<a href="${url}">${text.htmlEncode()}</a>`;
 
             document.addEventListener('copy', event => {
                 if (event.target.nodeType === 1 && event.target.matches('#clip')) {