fix(frontend): use Buffer.from for utf-8 encoding when loading existing configurations

This commit is contained in:
Viren070
2025-04-30 14:23:52 +01:00
parent 66b4a0cc16
commit abed8df4c9
+3 -1
View File
@@ -489,7 +489,9 @@ export default function Configure() {
if (isValueEncrypted(config) || config.startsWith('B-')) {
throw new Error('Encrypted Config Not Supported');
} else {
decodedConfig = JSON.parse(atob(decodeURIComponent(config)));
decodedConfig = JSON.parse(
Buffer.from(decodeURIComponent(config), 'base64').toString('utf-8')
);
}
return decodedConfig;
}