This commit is contained in:
Andrea Vos 2024-12-29 13:28:02 +01:00
parent a5951d4557
commit a951b721f3

View File

@ -825,7 +825,7 @@ const isValidAvatarSource = (source: string | null): boolean => {
return true;
}
if (process.env.CLOUDFRONT && source.startsWith(process.env.CLOUDFRONT + '/')) {
if (process.env.CLOUDFRONT && source.startsWith(`${process.env.CLOUDFRONT}/`)) {
return true;
}