Merge pull request #232 from neuweiler/master
replace "MISSING:" with "MISSING-" to avoid MalformedUrlException
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user