This is an automated email from the ASF dual-hosted git repository.
remm 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 7d90dd6bc5 Try to adjust for Windows
7d90dd6bc5 is described below
commit 7d90dd6bc5dcafaab4bf50b9711ac372fb7f06fc
Author: remm <[email protected]>
AuthorDate: Thu Jun 27 20:26:59 2024 +0200
Try to adjust for Windows
---
java/org/apache/jasper/compiler/ParserController.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/java/org/apache/jasper/compiler/ParserController.java
b/java/org/apache/jasper/compiler/ParserController.java
index b35f58331d..2d89348a1e 100644
--- a/java/org/apache/jasper/compiler/ParserController.java
+++ b/java/org/apache/jasper/compiler/ParserController.java
@@ -533,7 +533,7 @@ class ParserController implements TagConstants {
String fileName = inFileName.replace('\\', '/');
boolean isAbsolute = fileName.startsWith("/");
if (!isAbsolute) {
- fileName = Paths.get(baseDirStack.peekFirst() +
fileName).normalize().toString();
+ fileName = Paths.get(baseDirStack.peekFirst() +
fileName).normalize().toString().replace('\\', '/');
}
String baseDir = fileName.substring(0, fileName.lastIndexOf('/') + 1);
baseDirStack.addFirst(baseDir);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]