struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject [struts] branch master updated: Uses proper exclude pattern to avoid processing JS, CSS and images
Date Thu, 03 Dec 2020 08:41:12 GMT
This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/struts.git


The following commit(s) were added to refs/heads/master by this push:
     new 9bdb578  Uses proper exclude pattern to avoid processing JS, CSS and images
9bdb578 is described below

commit 9bdb578540f9f71a92b10f0da706083e49e52e28
Author: Lukasz Lenart <lukaszlenart@apache.org>
AuthorDate: Thu Dec 3 09:41:05 2020 +0100

    Uses proper exclude pattern to avoid processing JS, CSS and images
---
 apps/showcase/src/main/resources/struts.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/showcase/src/main/resources/struts.xml b/apps/showcase/src/main/resources/struts.xml
index 0e2ce10..36d0370 100644
--- a/apps/showcase/src/main/resources/struts.xml
+++ b/apps/showcase/src/main/resources/struts.xml
@@ -44,7 +44,7 @@
     <constant name="struts.serve.static" value="true" />
     <constant name="struts.serve.static.browserCache" value="false" />
 
-    <constant name="struts.action.excludePattern" value=".*\.gif,.*\.css,.*\.js"/>
+    <constant name="struts.action.excludePattern" value=".*/images/.*\.gif,.*/img/.*\.gif,.*/styles/.*\.css,.*/js/.*\.js"/>
 
     <include file="struts-interactive.xml" />
 


Mime
View raw message