Allow blank strings to be used for env var property substitutions

Fixes #4663
This commit is contained in:
Nick O'Leary 2024-04-24 22:58:11 +02:00
parent c9b902c2b4
commit 236e668201
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -68,7 +68,7 @@ function mapEnvVarProperties(obj,prop,flow,config) {
if (obj[prop][0] === "$" && (EnvVarPropertyRE_old.test(v) || EnvVarPropertyRE.test(v)) ) { if (obj[prop][0] === "$" && (EnvVarPropertyRE_old.test(v) || EnvVarPropertyRE.test(v)) ) {
const envVar = v.substring(2,v.length-1); const envVar = v.substring(2,v.length-1);
const r = redUtil.getSetting(config, envVar, flow); const r = redUtil.getSetting(config, envVar, flow);
if (r !== undefined && r !== '') { if (r !== undefined) {
obj[prop] = r obj[prop] = r
} }
} }