struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject struts git commit: Allows empty string as a action name
Date Mon, 23 May 2016 15:06:00 GMT
Repository: struts
Updated Branches:
  refs/heads/master 9b34a2819 -> 095960b56


Allows empty string as a action name


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

Branch: refs/heads/master
Commit: 095960b5691d33f127000794b3e79638cf384652
Parents: 9b34a28
Author: Lukasz Lenart <lukaszlenart@apache.org>
Authored: Mon May 23 17:04:38 2016 +0200
Committer: Lukasz Lenart <lukaszlenart@apache.org>
Committed: Mon May 23 17:05:53 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/095960b5/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 1396025..005f9f2 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_!/\\-]*((.htm[l]?)|(.action))?$");
     private boolean allowActionPrefix = false;
     private boolean allowActionCrossNamespaceAccess = false;
 


Mime
View raw message