mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
type checker wants a string
This commit is contained in:
@ -5328,7 +5328,7 @@ app.post('/asset_delete', jsonParser, async (request, response) => {
|
|||||||
// Sanitize filename
|
// Sanitize filename
|
||||||
const safe_input = checkAssetFileName(inputFilename);
|
const safe_input = checkAssetFileName(inputFilename);
|
||||||
if (safe_input == '')
|
if (safe_input == '')
|
||||||
return response.sendFile(400);
|
return response.sendFile('400');
|
||||||
|
|
||||||
const file_path = path.join(directories.assets, category, safe_input)
|
const file_path = path.join(directories.assets, category, safe_input)
|
||||||
console.debug("Request received to delete", category, file_path);
|
console.debug("Request received to delete", category, file_path);
|
||||||
|
Reference in New Issue
Block a user