replace "MISSING:" with "MISSING-" to avoid MalformedUrlException when digesting/diffing app with undefined variables (during build time) in appbase/latest.

This commit is contained in:
e507802
2019-07-02 14:00:00 +02:00
parent e7818030a7
commit 024d84ac2a
@@ -1147,7 +1147,7 @@ public class Application
Matcher matcher = ENV_VAR_PATTERN.matcher(text);
while (matcher.find()) {
String varName = matcher.group(1), varValue = System.getenv(varName);
String repValue = varValue == null ? "MISSING:"+varName : varValue;
String repValue = varValue == null ? "MISSING-"+varName : varValue;
matcher.appendReplacement(sb, Matcher.quoteReplacement(repValue));
}
matcher.appendTail(sb);