Fix uploading icons

This commit is contained in:
2026-01-31 00:46:37 -07:00
parent 2568f9d8fe
commit d06895eede

View File

@@ -102,7 +102,7 @@ export async function handler (context: Context) {
connection1, connection1,
'Price cannot be be under 10 coins' 'Price cannot be be under 10 coins'
) )
if (!/^[a-zA-Z0-9 ]+$/.test(btoa(body.name))) if (!/^[a-zA-Z0-9 ]+$/.test(body.name))
return exitBecauseInvalid(connection0, connection1, 'Name is invalid') return exitBecauseInvalid(connection0, connection1, 'Name is invalid')
const decoded = Buffer.from(body.fileContent, 'base64') const decoded = Buffer.from(body.fileContent, 'base64')
if (!decoded) if (!decoded)