Sanitize entered URLs

This commit is contained in:
Cohee 2024-07-10 21:44:09 +03:00
parent 75382b77ea
commit 21de199b0f
1 changed files with 1 additions and 1 deletions

View File

@ -420,7 +420,7 @@ jQuery(async () => {
const connectButton = windowHtml.find('#assets-connect-button');
connectButton.on('click', async function () {
const url = String(assetsJsonUrl.val());
const url = DOMPurify.sanitize(String(assetsJsonUrl.val()));
const rememberKey = `Assets_SkipConfirm_${getStringHash(url)}`;
const skipConfirm = localStorage.getItem(rememberKey) === 'true';