You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2020/03/16 17:48:09 UTC
[tomcat] 03/04: Simplify comment. Call byte decode method directly.
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 26ff6f723213730b6802df30c76ba37d24141fce
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 0d81f6d..e7cc9ed 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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org