mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Concatenate strings in /addvar
This commit is contained in:
@ -264,7 +264,8 @@ async function delayCallback(_, amount) {
|
||||
async function inputCallback(_, prompt) {
|
||||
// Do not remove this delay, otherwise the prompt will not show up
|
||||
await delay(1);
|
||||
const result = await callPopup(prompt || '', 'input');
|
||||
const safeValue = DOMPurify.sanitize(prompt || '');
|
||||
const result = await callPopup(safeValue, 'input');
|
||||
await delay(1);
|
||||
return result || '';
|
||||
}
|
||||
|
Reference in New Issue
Block a user