purify popup warning string

a8f6e5c5f71a0f02ce7a3346c86a84b65e872dd1

Wolfsblvt <wolfsblvt@gmail.com>

1 files changed, +1 -1Ignore whitespace
public/scripts/tags.js+1 -1
@@ -1525,7 +1525,7 @@ async function onTagRestoreFileSelect(e) {
1525 if (warnings.length) {1525 if (warnings.length) {
1526 toastr.warning('Tags restored with warnings. Check console or click on this message for details.', 'Tag Restore', {1526 toastr.warning('Tags restored with warnings. Check console or click on this message for details.', 'Tag Restore', {
1527 timeOut: toastr.options.timeOut * 2, // Display double the time1527 timeOut: toastr.options.timeOut * 2, // Display double the time
1528 onclick: () => Popup.show.text('Tag Restore Warnings', `<samp class="justifyLeft">${warnings.join('<br />')}<samp>`, { allowVerticalScrolling: true }),1528 onclick: () => Popup.show.text('Tag Restore Warnings', `<samp class="justifyLeft">${DOMPurify.sanitize(warnings.join('\n'))}<samp>`, { allowVerticalScrolling: true }),
1529 });1529 });
1530 console.warn(`TAG RESTORE REPORT\n====================\n${warnings.join('\n')}`);1530 console.warn(`TAG RESTORE REPORT\n====================\n${warnings.join('\n')}`);
1531 } else {1531 } else {