Skip to content

Commit

Permalink
FORMS-15852 xss fix for svg upload in file upload main II
Browse files Browse the repository at this point in the history
  • Loading branch information
rajatkhurana-adobe authored and ci-build committed Oct 24, 2024
1 parent 4693337 commit 9a9e268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui.frontend/src/view/FormFileInputWidgetBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class FormFileInputWidgetBase {
const img = document.createElement('img');
img.src = url;
const newTab = window.open('', '_blank', 'scrollbars=no,menubar=no,height=600,width=800,resizable=yes,toolbar=no,status=no');
newTab.document.body.appendChild(img);
newTab?.document?.body.appendChild(img);
}

static previewFileUsingObjectUrl(file) {
Expand Down

0 comments on commit 9a9e268

Please sign in to comment.