This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 5f5e3756f47b043f3f0112a362772c3e156681ac Author: Mark Thomas <ma...@apache.org> AuthorDate: Mon Mar 16 16:18:53 2020 +0000 Simplify comment. Call byte decode method directly. --- java/org/apache/catalina/connector/CoyoteAdapter.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/java/org/apache/catalina/connector/CoyoteAdapter.java b/java/org/apache/catalina/connector/CoyoteAdapter.java index 1d21a24..3b6f7e9 100644 --- a/java/org/apache/catalina/connector/CoyoteAdapter.java +++ b/java/org/apache/catalina/connector/CoyoteAdapter.java @@ -624,15 +624,13 @@ public class CoyoteAdapter implements Adapter { // Copy the raw URI to the decodedURI decodedURI.duplicate(undecodedURI); - // Parse the path parameters. This will: - // - strip out the path parameters - // - convert the decodedURI to bytes + // Parse (and strip out) the path parameters parsePathParameters(req, request); // URI decoding // %xx decoding of the URL try { - req.getURLDecoder().convert(decodedURI, false); + req.getURLDecoder().convert(decodedURI.getByteChunk(), false); } catch (IOException ioe) { response.sendError(400, "Invalid URI: " + ioe.getMessage()); } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org