Skip to content
Permalink
Browse files

Escape debug output to aid readability

# Conflicts:
#	java/org/apache/catalina/ssi/SSIPrintenv.java
  • Loading branch information...
markt-asf committed Mar 11, 2019
1 parent 806195b commit 44ec74c44dcd05cd7e90967c04d40b51440ecd7e
Showing with 5 additions and 3 deletions.
  1. +2 −3 java/org/apache/catalina/ssi/SSIPrintenv.java
  2. +3 −0 webapps/docs/changelog.xml
@@ -22,7 +22,7 @@
import java.util.Iterator;
/**
* Implements the Server-side #printenv command
*
*
* @author Dan Sandberg
* @author David Becker
*/
@@ -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) {
@@ -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">

0 comments on commit 44ec74c

Please sign in to comment.
You can’t perform that action at this time.