should be a string according to types

This commit is contained in:
RealBeepMcJeep 2023-08-30 07:56:48 -07:00
parent 2928c79446
commit 4e78c3ec79
1 changed files with 1 additions and 1 deletions

View File

@ -5265,7 +5265,7 @@ app.post('/asset_download', jsonParser, async (request, response) => {
// Sanitize filename
const safe_input = checkAssetFileName(inputFilename);
if (safe_input == '')
return response.sendFile(400);
return response.sendFile('400');
const temp_path = path.join(directories.assets, "temp", safe_input)
const file_path = path.join(directories.assets, category, safe_input)