mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Sanitize entered URLs
This commit is contained in:
@ -420,7 +420,7 @@ jQuery(async () => {
|
|||||||
|
|
||||||
const connectButton = windowHtml.find('#assets-connect-button');
|
const connectButton = windowHtml.find('#assets-connect-button');
|
||||||
connectButton.on('click', async function () {
|
connectButton.on('click', async function () {
|
||||||
const url = String(assetsJsonUrl.val());
|
const url = DOMPurify.sanitize(String(assetsJsonUrl.val()));
|
||||||
const rememberKey = `Assets_SkipConfirm_${getStringHash(url)}`;
|
const rememberKey = `Assets_SkipConfirm_${getStringHash(url)}`;
|
||||||
const skipConfirm = localStorage.getItem(rememberKey) === 'true';
|
const skipConfirm = localStorage.getItem(rememberKey) === 'true';
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user