Allow ciphers in overrides via escape of '{'
This commit is contained in:
@@ -66,8 +66,11 @@ public class EnvironmentEncryptorEnvironmentRepository implements EnvironmentRep
|
||||
public void setOverrides(Map<String, String> overrides) {
|
||||
this.overrides = new HashMap<String, String>(overrides);
|
||||
for (String key : overrides.keySet()) {
|
||||
if (overrides.get(key).contains("$\\{")) {
|
||||
this.overrides.put(key, overrides.get(key).replace("$\\{", "${"));
|
||||
if (overrides.get(key).contains("\\{")) {
|
||||
this.overrides.put(key, overrides.get(key).replace("\\{", "{"));
|
||||
}
|
||||
if (overrides.get(key).contains("\\${")) {
|
||||
this.overrides.put(key, overrides.get(key).replace("\\${", "${"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user