jbonofre commented on code in PR #1745:
URL: https://github.com/apache/activemq/pull/1745#discussion_r2906079307
##########
activemq-web/src/main/java/org/apache/activemq/web/PortfolioPublishServlet.java:
##########
@@ -132,6 +134,6 @@ protected int getNumberOfMessages(HttpServletRequest
request) {
}
protected String escape(String text) throws IOException {
- return java.net.URLEncoder.encode(text, "UTF-8");
+ return text != null ? HtmlUtils.htmlEscape(text, "UTF-8") : null;
Review Comment:
I'm fine using Spring `HtmlUtils` here for now.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact