SEC-532: Madded FilterinvocationDefinitionSourceMapping package scoped

This commit is contained in:
Luke Taylor 2008-01-29 13:08:12 +00:00
parent 8e5b608ee9
commit a0ee7fb6fd
2 changed files with 4 additions and 1 deletions

View File

@ -29,7 +29,7 @@ import org.springframework.security.ConfigAttribute;
* @version $Id$
* @since 1.1
*/
public class FilterInvocationDefinitionSourceMapping {
class FilterInvocationDefinitionSourceMapping {
private String url;

View File

@ -54,6 +54,9 @@ public class PathBasedFilterInvocationDefinitionMap extends DefaultFilterInvocat
public void addSecureUrl(String antPath, String method, ConfigAttributeDefinition attr) {
// SEC-501: If using lower case comparison, we should convert the paths to lower case
// as any upper case characters included by mistake will prevent the URL from ever being matched.
// This shouldn't be needed anymore. The property editor complains if there is upper case text in the URL
// and the namespace implementation does the conversion itself, so it is safe to use the parent class
// directly.
if (getUrlMatcher().requiresLowerCaseUrl()) {
antPath = antPath.toLowerCase();
}