"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tapestry-core/src/main/java/org/apache/tapestry5/internal/services/assets/ContextAssetRequestHandler.java" between
apache-tapestry-5.7.1-sources.zip and apache-tapestry-5.7.2-sources.zip

About: Apache Tapestry is a framework for creating dynamic, robust, highly scalable web applications in Java. Source code.

ContextAssetRequestHandler.java  (apache-tapestry-5.7.1-sources):ContextAssetRequestHandler.java  (apache-tapestry-5.7.2-sources)
skipping to change at line 38 skipping to change at line 38
* access anything under WEB-INF or META-INF. * access anything under WEB-INF or META-INF.
* *
* @since 5.2.0 * @since 5.2.0
*/ */
public class ContextAssetRequestHandler implements AssetRequestHandler public class ContextAssetRequestHandler implements AssetRequestHandler
{ {
private final ResourceStreamer resourceStreamer; private final ResourceStreamer resourceStreamer;
private final Resource rootContextResource; 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, Resourc e rootContextResource) public ContextAssetRequestHandler(ResourceStreamer resourceStreamer, Resourc e rootContextResource)
{ {
this.resourceStreamer = resourceStreamer; this.resourceStreamer = resourceStreamer;
this.rootContextResource = rootContextResource; this.rootContextResource = rootContextResource;
} }
public boolean handleAssetRequest(Request request, Response response, String extraPath) throws IOException public boolean handleAssetRequest(Request request, Response response, String extraPath) throws IOException
{ {
ChecksumPath path = new ChecksumPath(resourceStreamer, null, extraPath); ChecksumPath path = new ChecksumPath(resourceStreamer, null, extraPath);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)