mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-31 11:35:37 +01:00
Fix no sanitize check on wi create
This commit is contained in:
parent
ab8c67ede6
commit
92cb70213a
@ -2631,7 +2631,9 @@ async function createNewWorldInfo(worldName, { interactive = false } = {}) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const allowed = await checkOverwriteExistingData('World Info', world_names, worldName, { interactive: interactive, actionName: 'Create', deleteAction: (existingName) => deleteWorldInfo(existingName) });
|
||||
const sanitizedWorldName = await getSanitizedFilename(worldName);
|
||||
|
||||
const allowed = await checkOverwriteExistingData('World Info', world_names, sanitizedWorldName, { interactive: interactive, actionName: 'Create', deleteAction: (existingName) => deleteWorldInfo(existingName) });
|
||||
if (!allowed) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user