Skip to content

Commit 4fcdf70

Browse files
committed
Escape debug output to aid readability
1 parent 7fc16d1 commit 4fcdf70

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

java/org/apache/catalina/ssi/SSIPrintenv.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ public long process(SSIMediator ssiMediator, String commandName,
4141
} else {
4242
Collection<String> variableNames = ssiMediator.getVariableNames();
4343
for (String variableName : variableNames) {
44-
String variableValue = ssiMediator
45-
.getVariableValue(variableName);
44+
String variableValue = ssiMediator.getVariableValue(variableName, "entity");
4645
//This shouldn't happen, since all the variable names must
4746
// have values
4847
if (variableValue == null) {

webapps/docs/changelog.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@
9090
Tomcat used to resolve standard XML DTDs and schemas when Tomcat is
9191
configured to validate XML configuration files such as web.xml. (markt)
9292
</fix>
93+
<fix>
94+
Encode the output of the SSI <code>printenv</code> command. (markt)
95+
</fix>
9396
</changelog>
9497
</subsection>
9598
<subsection name="Coyote">

0 commit comments

Comments
 (0)