You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by th...@apache.org on 2020/07/18 19:17:03 UTC
[tapestry-5] branch master updated: TAP5-2632: slashes in context
URLs are not handled properly
This is an automated email from the ASF dual-hosted git repository.
thiagohp pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tapestry-5.git
The following commit(s) were added to refs/heads/master by this push:
new cf19122 TAP5-2632: slashes in context URLs are not handled properly
cf19122 is described below
commit cf1912291af9146ee86a4aef471ae2ab31d3a28b
Author: Thiago H. de Paula Figueiredo <th...@arsmachina.com.br>
AuthorDate: Sat Jul 18 16:16:50 2020 -0300
TAP5-2632: slashes in context URLs are not handled properly
---
.../tapestry5/internal/services/assets/ContextAssetRequestHandler.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/assets/ContextAssetRequestHandler.java b/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/assets/ContextAssetRequestHandler.java
index 75a4b6c..473eded 100644
--- a/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/assets/ContextAssetRequestHandler.java
+++ b/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/assets/ContextAssetRequestHandler.java
@@ -35,7 +35,7 @@ public class ContextAssetRequestHandler implements AssetRequestHandler
private final Resource rootContextResource;
- private final Pattern illegal = Pattern.compile("^(((web|meta)-inf.*)|(.*\\.tml$))", Pattern.CASE_INSENSITIVE);
+ private final Pattern illegal = Pattern.compile("^(/*((web|meta)-inf.*)|(.*\\.tml$))", Pattern.CASE_INSENSITIVE);
public ContextAssetRequestHandler(ResourceStreamer resourceStreamer, Resource rootContextResource)
{