🐛 Normalize file type extension comparison in parseReply function

This commit is contained in:
Baptiste Arnaud 2025-05-26 18:57:35 +02:00
parent 0a34f7a8c8
commit c28c39bc64
No known key found for this signature in database

View File

@ -887,7 +887,8 @@ const parseReply = async (
const extension = url.split(".").pop();
if (!extension) return false;
return allowedFileTypesMetadata.some(
(metadata) => metadata.extension === extension,
(metadata) =>
metadata.extension.toLowerCase() === extension.toLowerCase(),
);
})
: true;