struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4489) Simplify DefaultExcludedPatternsChecker class pattern
Date Thu, 09 Apr 2015 11:51:12 GMT

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

Lukasz Lenart commented on WW-4489:
-----------------------------------

You can access class as follow
{code}
#application['class'].classLoader
#session.class.classLoader
{code}

so it must always have a prefix but what if user passes {{styleClass.internal=true}} query
parameter?

> Simplify DefaultExcludedPatternsChecker class pattern
> -----------------------------------------------------
>
>                 Key: WW-4489
>                 URL: https://issues.apache.org/jira/browse/WW-4489
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors
>    Affects Versions: 2.3.20
>            Reporter: Jasper Rosenberg
>            Priority: Minor
>             Fix For: 2.3.24
>
>
> The current pattern that matches class expressions looks like:
> {code:java}"(.*\\.|^|.*|\\[('|\"))\\bclass(\\.|('|\")]|\\[).*"{code}
> However, as far as I can tell, this is completely equivalent to:
> {code:java}".*\\bclass(\\.|('|\")]|\\[).*"{code}
> Not sure if this is a bug, or an improvement.  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message