Merge pull request #232 from neuweiler/master

replace "MISSING:" with "MISSING-" to avoid MalformedUrlException
This commit is contained in:
Michael Bayne
2019-07-02 08:05:52 -07:00
committed by GitHub
@@ -1147,7 +1147,7 @@ public class Application
Matcher matcher = ENV_VAR_PATTERN.matcher(text); Matcher matcher = ENV_VAR_PATTERN.matcher(text);
while (matcher.find()) { while (matcher.find()) {
String varName = matcher.group(1), varValue = System.getenv(varName); 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.appendReplacement(sb, Matcher.quoteReplacement(repValue));
} }
matcher.appendTail(sb); matcher.appendTail(sb);