mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-11-24 09:50:51 -06:00
SDA-1895 - Escape backslash characters for autoLaunchPath (#944)
This commit is contained in:
parent
d685be3eb6
commit
86854315b3
@ -171,6 +171,9 @@ ipcMain.on(apiName.symphonyApi, async (event: Electron.IpcMainEvent, arg: IApiAr
|
|||||||
break;
|
break;
|
||||||
case apiCmds.setCloudConfig:
|
case apiCmds.setCloudConfig:
|
||||||
const { podLevelEntitlements, acpFeatureLevelEntitlements, pmpEntitlements, ...rest } = arg.cloudConfig as ICloudConfig;
|
const { podLevelEntitlements, acpFeatureLevelEntitlements, pmpEntitlements, ...rest } = arg.cloudConfig as ICloudConfig;
|
||||||
|
if (podLevelEntitlements && podLevelEntitlements.autoLaunchPath && podLevelEntitlements.autoLaunchPath.match(/\\\\/g)) {
|
||||||
|
podLevelEntitlements.autoLaunchPath = podLevelEntitlements.autoLaunchPath.replace(/\\+/g, '\\');
|
||||||
|
}
|
||||||
logger.info('main-api-handler: ignored other values from SFE', rest);
|
logger.info('main-api-handler: ignored other values from SFE', rest);
|
||||||
await config.updateCloudConfig({ podLevelEntitlements, acpFeatureLevelEntitlements, pmpEntitlements });
|
await config.updateCloudConfig({ podLevelEntitlements, acpFeatureLevelEntitlements, pmpEntitlements });
|
||||||
await updateFeaturesForCloudConfig();
|
await updateFeaturesForCloudConfig();
|
||||||
|
Loading…
Reference in New Issue
Block a user