[ 
https://issues.apache.org/jira/browse/WW-3755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13210899#comment-13210899
 ] 

Maurizio Cucchiara commented on WW-3755:
----------------------------------------

ATM there is no way to change the value of {{acceptedParamNames}}: it's private 
and nothing inside the code tries to change its value.
FWIW the code:
{code}
private String acceptedParamNames = 
"\\w+((\\.\\w+)|(\\[\\d+\\])|(\\(\\d+\\))|(\\['\\w+'\\])|(\\('\\w+'\\)))*";
private Pattern acceptedPattern = Pattern.compile(acceptedParamNames);
{code}
could be changed to
{code}
private Pattern acceptedPattern = 
Pattern.compile("\\w+((\\.\\w+)|(\\[\\d+\\])|(\\(\\d+\\))|(\\['\\w+'\\])|(\\('\\w+'\\)))*");
{code}
without any side effects (it could also be final)

                
> make ParametersInterceptor.acceptedParamNames public and static
> ---------------------------------------------------------------
>
>                 Key: WW-3755
>                 URL: https://issues.apache.org/jira/browse/WW-3755
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Core Interceptors
>            Reporter: zhouyanming
>         Attachments: patch.txt
>
>
> let it can be referenced by other classes

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to