Skip to content

Commit

Permalink
Update java.js
Browse files Browse the repository at this point in the history
Added "noopener,noreferrer" to _blank targets in window.open JavaScript calls
https://developer.mozilla.org/en-US/docs/Web/API/Window/open#window_functionality_features
  • Loading branch information
pascal-meunier authored and erichhuebner committed Apr 8, 2021
1 parent 47e58d4 commit 7beee5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/plugins/tools/java/assets/js/java.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ HUB.Mw = {
else {
actionurl = action.slice(4);
}
document.open(actionurl, '_blank', 'width=600,height=600,toolbar=no,menubar=no,scrollbars=yes,resizable=yes');
document.open(actionurl, '_blank', 'noopener,noreferrer,width=600,height=600,toolbar=no,menubar=no,scrollbars=yes,resizable=yes');
} else if (action.slice(0,6) == "alert ") {
alert(action.slice(6));
} else {
Expand Down

0 comments on commit 7beee5c

Please sign in to comment.