This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push: new f0573d5cd3 Fix comment. f0573d5cd3 is described below commit f0573d5cd3bd7d77174d127a746ab16ab3e91f76 Author: Mark Thomas <ma...@apache.org> AuthorDate: Tue Oct 29 14:56:06 2024 +0000 Fix comment. --- java/org/apache/catalina/webresources/AbstractFileResourceSet.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/org/apache/catalina/webresources/AbstractFileResourceSet.java b/java/org/apache/catalina/webresources/AbstractFileResourceSet.java index bdf51a5821..f416f929cb 100644 --- a/java/org/apache/catalina/webresources/AbstractFileResourceSet.java +++ b/java/org/apache/catalina/webresources/AbstractFileResourceSet.java @@ -102,8 +102,8 @@ public abstract class AbstractFileResourceSet extends AbstractResourceSet { /* * Ensure that the file is not outside the fileBase. This should not be possible for standard requests (the * request is normalized early in the request processing) but might be possible for some access via the Servlet - * API (e.g. RequestDispatcher) therefore these checks are retained as an additional safety measure absoluteBase - * has been normalized so absPath needs to be normalized as well. + * API (e.g. RequestDispatcher) therefore these checks are retained as an additional safety measure. + * absoluteBase has been normalized so absPath needs to be normalized as well. */ String absPath = normalize(file.getAbsolutePath()); if (absPath == null || absoluteBase.length() > absPath.length()) { --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org