This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/10.1.x by this push:
     new 9ea5636640 Fix multiple test failures on Windows.
9ea5636640 is described below

commit 9ea5636640047ffbfdf0587b811e4e68afa28030
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu Jun 22 19:09:58 2023 +0100

    Fix multiple test failures on Windows.
---
 java/org/apache/catalina/webresources/AbstractFileResourceSet.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java/org/apache/catalina/webresources/AbstractFileResourceSet.java 
b/java/org/apache/catalina/webresources/AbstractFileResourceSet.java
index 019bb908f4..6d7961c956 100644
--- a/java/org/apache/catalina/webresources/AbstractFileResourceSet.java
+++ b/java/org/apache/catalina/webresources/AbstractFileResourceSet.java
@@ -118,7 +118,7 @@ public abstract class AbstractFileResourceSet extends 
AbstractResourceSet {
         canPath = canPath.substring(canonicalBase.length());
 
         // The remaining request path must start with '/' if it has non-zero 
length
-        if (canPath.length() > 0 && canPath.charAt(0) != '/') {
+        if (canPath.length() > 0 && canPath.charAt(0) != File.separatorChar) {
             return null;
         }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to