diff --git a/public/scripts/tags.js b/public/scripts/tags.js index 4b8115f91..43b52f74e 100644 --- a/public/scripts/tags.js +++ b/public/scripts/tags.js @@ -1525,7 +1525,7 @@ async function onTagRestoreFileSelect(e) { if (warnings.length) { toastr.warning('Tags restored with warnings. Check console or click on this message for details.', 'Tag Restore', { timeOut: toastr.options.timeOut * 2, // Display double the time - onclick: () => Popup.show.text('Tag Restore Warnings', `${warnings.join('
')}`, { allowVerticalScrolling: true }), + onclick: () => Popup.show.text('Tag Restore Warnings', `${DOMPurify.sanitize(warnings.join('\n'))}`, { allowVerticalScrolling: true }), }); console.warn(`TAG RESTORE REPORT\n====================\n${warnings.join('\n')}`); } else {