You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2024/06/27 18:43:07 UTC
(tomcat) branch 10.1.x updated: Try to adjust for Windows
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 <re...@apache.org>
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org