struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject [21/50] [abbrv] git commit: WW-4250 extends ParametersInterceptor to support chinese in hash key
Date Sun, 06 Apr 2014 14:03:34 GMT
WW-4250 extends ParametersInterceptor to support chinese in hash key


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

Branch: refs/heads/master
Commit: 8b845ec814a428121617a8bea387a34fed74dcf5
Parents: e62547e
Author: Lukasz Lenart <lukaszlenart@apache.org>
Authored: Thu Mar 27 07:03:52 2014 +0100
Committer: Lukasz Lenart <lukaszlenart@apache.org>
Committed: Thu Mar 27 07:03:52 2014 +0100

----------------------------------------------------------------------
 .../com/opensymphony/xwork2/interceptor/ParametersInterceptor.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts/blob/8b845ec8/xwork-core/src/main/java/com/opensymphony/xwork2/interceptor/ParametersInterceptor.java
----------------------------------------------------------------------
diff --git a/xwork-core/src/main/java/com/opensymphony/xwork2/interceptor/ParametersInterceptor.java
b/xwork-core/src/main/java/com/opensymphony/xwork2/interceptor/ParametersInterceptor.java
index 75911a8..7f3f677 100644
--- a/xwork-core/src/main/java/com/opensymphony/xwork2/interceptor/ParametersInterceptor.java
+++ b/xwork-core/src/main/java/com/opensymphony/xwork2/interceptor/ParametersInterceptor.java
@@ -141,7 +141,7 @@ public class ParametersInterceptor extends MethodFilterInterceptor {
 
     private static final Logger LOG = LoggerFactory.getLogger(ParametersInterceptor.class);
 
-    public static final String ACCEPTED_PARAM_NAMES = "\\w+((\\.\\w+)|(\\[\\d+\\])|(\\(\\d+\\))|(\\['\\w+'\\])|(\\('\\w+'\\)))*";
+    public static final String ACCEPTED_PARAM_NAMES = "\\w+((\\.\\w+)|(\\[\\d+\\])|(\\(\\d+\\))|(\\['(\\w|[^x00-xff])+'\\])|(\\('(\\w|[^x00-xff])+'\\)))*";
 
     protected static final int PARAM_NAME_MAX_LENGTH = 100;
 


Mime
View raw message