This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push:
new 205fcbdfa1 Fix comment.
205fcbdfa1 is described below
commit 205fcbdfa1574ccfa2e786d204dd7cd66dd6ee37
Author: Mark Thomas <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]