You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "alexkachanov (via GitHub)" <gi...@apache.org> on 2023/05/24 00:11:35 UTC

[GitHub] [tomcat] alexkachanov commented on a diff in pull request #621: Bug 66609 - invalid XML in directory listing with file names containing "&" and "'"

alexkachanov commented on code in PR #621:
URL: https://github.com/apache/tomcat/pull/621#discussion_r1203192504


##########
java/org/apache/catalina/util/URLEncoder.java:
##########
@@ -40,6 +40,7 @@ public final class URLEncoder implements Cloneable {
 
     public static final URLEncoder DEFAULT = new URLEncoder();
     public static final URLEncoder QUERY = new URLEncoder();
+    public static final URLEncoder XML = new URLEncoder();

Review Comment:
   added new XML encoder that encodes strings that are valid in XML



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org