Skip to content

Commit

Permalink
Escape debug output to aid readability
Browse files Browse the repository at this point in the history
# Conflicts:
#	java/org/apache/catalina/ssi/SSIPrintenv.java
  • Loading branch information
markt-asf committed Apr 10, 2019
1 parent 806195b commit 44ec74c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 2 additions & 3 deletions java/org/apache/catalina/ssi/SSIPrintenv.java
Expand Up @@ -22,7 +22,7 @@
import java.util.Iterator;
/**
* Implements the Server-side #printenv command
*
*
* @author Dan Sandberg
* @author David Becker
*/
Expand All @@ -43,8 +43,7 @@ public long process(SSIMediator ssiMediator, String commandName,
Iterator<String> iter = variableNames.iterator();
while (iter.hasNext()) {
String variableName = iter.next();
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
Expand Up @@ -131,6 +131,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 44ec74c

Please sign in to comment.