This is an automated email from the ASF dual-hosted git repository.
asf-gitbox-commits pushed a commit to branch 5.9.x-javax
in repository https://gitbox.apache.org/repos/asf/tapestry-5.git
The following commit(s) were added to refs/heads/5.9.x-javax by this push:
new db41c57e6 New classpath asset protection rules
db41c57e6 is described below
commit db41c57e6cf593747fd11613194c5c714a7e40ce
Author: Ben Weidig <[email protected]>
AuthorDate: Wed Oct 7 08:19:06 2026 +0200
New classpath asset protection rules
---
.../src/main/java/org/apache/tapestry5/modules/AssetsModule.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/tapestry-core/src/main/java/org/apache/tapestry5/modules/AssetsModule.java
b/tapestry-core/src/main/java/org/apache/tapestry5/modules/AssetsModule.java
index 1b11203fe..4f64539ad 100644
--- a/tapestry-core/src/main/java/org/apache/tapestry5/modules/AssetsModule.java
+++ b/tapestry-core/src/main/java/org/apache/tapestry5/modules/AssetsModule.java
@@ -501,7 +501,7 @@ public class AssetsModule
final int lastIndex = path.lastIndexOf('/');
if (lastIndex >= 0)
{
- path = path.substring(lastIndex);
+ path = path.substring(lastIndex + 1);
}
return path.toLowerCase();
}