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

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


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

commit 3841ec8000de78c527013c5d06cdb763c8fa23c7
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