[ https://issues.apache.org/jira/browse/WICKET-3863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov reopened WICKET-3863: ------------------------------------- Re-opening for re=evaluation. > SecurePackageResourceGuard acceptAbsolutePath pattern check loop > ----------------------------------------------------------------- > > Key: WICKET-3863 > URL: https://issues.apache.org/jira/browse/WICKET-3863 > Project: Wicket > Issue Type: Bug > Components: wicket-core > Affects Versions: 1.5-RC5.1 > Environment: all > Reporter: Richard Emberson > Priority: Minor > > The following loop might want to break out if a hit (== true) is found: > // Check against the pattern > boolean hit = false; > for (SearchPattern pattern : this.pattern) > { > if ((pattern != null) && pattern.isActive()) > { > if (pattern.matches(path)) > { > hit = pattern.isInclude(); > } > } > } > as it is, one pattern.isInclued could return true, but the next one false, > Mayby break out of loop if hit == true??? -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira