commit | a27f0d464af88f896377ea4764f58cbe2740f13b | [log] [tgz] |
---|---|---|
author | Akron <nils@diewald-online.de> | Mon Nov 13 14:08:41 2017 +0100 |
committer | Akron <nils@diewald-online.de> | Mon Nov 13 14:08:41 2017 +0100 |
tree | 1251f9fa59bfc451d7deae09a25aba8c53bfcc9b | |
parent | 086fe5d652eebd6aaa7e38cd55f3a66c7f590143 [diff] |
Improve security by protecting target=_blank Change-Id: Ifec199f7d535eff757106a96543acb3d4adae38c
diff --git a/dev/js/src/match/info.js b/dev/js/src/match/info.js index 7880a63..703e133 100644 --- a/dev/js/src/match/info.js +++ b/dev/js/src/match/info.js
@@ -252,6 +252,7 @@ a.setAttribute('href', 'data:image/svg+xml;base64,'+treeObj.toBase64()); a.setAttribute('download', 'tree.svg'); a.target = '_blank'; + a.setAttribute('rel', 'noopener noreferrer'); document.body.appendChild(a); a.click();