Skip to content

Commit

Permalink
Escape debug output to aid readability
Browse files Browse the repository at this point in the history
  • Loading branch information
markt-asf committed Apr 9, 2019
1 parent 9ea280c commit 15fcd16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions java/org/apache/catalina/ssi/SSIPrintenv.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ public long process(SSIMediator ssiMediator, String commandName,
} else {
Collection<String> variableNames = ssiMediator.getVariableNames();
for (String variableName : variableNames) {
String variableValue = ssiMediator
.getVariableValue(variableName);
String variableValue = ssiMediator.getVariableValue(variableName, "entity");
//This shouldn't happen, since all the variable names must
// have values
if (variableValue == null) {
Expand Down
3 changes: 3 additions & 0 deletions webapps/docs/changelog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@
Tomcat used to resolve standard XML DTDs and schemas when Tomcat is
configured to validate XML configuration files such as web.xml. (markt)
</fix>
<fix>
Encode the output of the SSI <code>printenv</code> command. (markt)
</fix>
</changelog>
</subsection>
<subsection name="Coyote">
Expand Down

0 comments on commit 15fcd16

Please sign in to comment.