fix(cf-worker): use utf-8 encoding when extracting

This commit is contained in:
Viren070
2025-05-01 17:49:08 +01:00
parent c3b25292b8
commit 22395d0949
+3 -1
View File
@@ -116,7 +116,9 @@ export default {
return createResponse('Encrypted Config Not Supported', 400);
}
try {
decodedConfig = unminifyConfig(JSON.parse(atob(config)));
decodedConfig = unminifyConfig(
JSON.parse(Buffer.from(config, 'base64').toString('utf-8'))
);
} catch (error: any) {
console.error(error);
return createJsonResponse(