Avoid potential clipboard based cross-site scripting

This commit is contained in:
Frédéric Guillot
2023-05-16 19:51:41 -07:00
committed by Frédéric Guillot
parent fe5fd9f774
commit 26b6eebb78
2 changed files with 2 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ KB.component('screenshot', function (containerElement) {
if (! window.Clipboard) {
// Insert the content editable at the top to avoid scrolling down in the board view
pasteCatcher = document.createElement('div');
pasteCatcher = document.createElement('template');
pasteCatcher.id = 'screenshot-pastezone';
pasteCatcher.contentEditable = true;
pasteCatcher.style.opacity = 0;