Skip to content

Commit 82b364d

Browse files
authored
Merge pull request #977 from stefansielaff/fix-behavior-of-envsvaluesubstitutor
WW-5437 Swap order of sysStrSubstitutor and envStrSubstitutor in substitute method
2 parents 8b22f71 + 98f2e68 commit 82b364d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/com/opensymphony/xwork2/config/providers/EnvsValueSubstitutor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public EnvsValueSubstitutor() {
4646
public String substitute(String value) {
4747
LOG.debug("Substituting value {} with proper System variable or environment variable", value);
4848

49-
String substituted = sysStrSubstitutor.replace(value);
50-
return envStrSubstitutor.replace(substituted);
49+
String substituted = envStrSubstitutor.replace(value);
50+
return sysStrSubstitutor.replace(substituted);
5151
}
5252
}

0 commit comments

Comments
 (0)