struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject [1/2] struts git commit: WW-4669 Reverts back to default RegEx
Date Wed, 27 Jul 2016 06:37:09 GMT
Repository: struts
Updated Branches:
  refs/heads/master 164356809 -> 0bd2e7058


WW-4669 Reverts back to default RegEx


Project: http://git-wip-us.apache.org/repos/asf/struts/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/c6d07d3a
Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/c6d07d3a
Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/c6d07d3a

Branch: refs/heads/master
Commit: c6d07d3ab66083f32ead69a9e2ff709d4c29dcd3
Parents: 1643568
Author: Lukasz Lenart <lukaszlenart@apache.org>
Authored: Wed Jul 27 08:28:00 2016 +0200
Committer: Lukasz Lenart <lukaszlenart@apache.org>
Committed: Wed Jul 27 08:28:00 2016 +0200

----------------------------------------------------------------------
 .../org/apache/struts2/dispatcher/mapper/DefaultActionMapper.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts/blob/c6d07d3a/core/src/main/java/org/apache/struts2/dispatcher/mapper/DefaultActionMapper.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/struts2/dispatcher/mapper/DefaultActionMapper.java
b/core/src/main/java/org/apache/struts2/dispatcher/mapper/DefaultActionMapper.java
index 005f9f2..d0e89be 100644
--- a/core/src/main/java/org/apache/struts2/dispatcher/mapper/DefaultActionMapper.java
+++ b/core/src/main/java/org/apache/struts2/dispatcher/mapper/DefaultActionMapper.java
@@ -120,7 +120,7 @@ public class DefaultActionMapper implements ActionMapper {
     protected boolean allowSlashesInActionNames = false;
     protected boolean alwaysSelectFullNamespace = false;
     protected PrefixTrie prefixTrie = null;
-    protected Pattern allowedActionNames = Pattern.compile("^[a-zA-Z0-9_!/\\-]*((.htm[l]?)|(.action))?$");
+    protected Pattern allowedActionNames = Pattern.compile("[a-zA-Z0-9._!/\\-]*");
     private boolean allowActionPrefix = false;
     private boolean allowActionCrossNamespaceAccess = false;
 


Mime
View raw message