Browse Source

SEC-333: Error in last commit, should default to regexp processor, not Ant Path processor, in the case of empty or null strings.

1.0.x
Ben Alex 19 years ago
parent
commit
4d166a6867
  1. 2
      core/src/main/java/org/acegisecurity/intercept/web/FilterInvocationDefinitionSourceEditor.java

2
core/src/main/java/org/acegisecurity/intercept/web/FilterInvocationDefinitionSourceEditor.java

@ -53,7 +53,7 @@ public class FilterInvocationDefinitionSourceEditor extends PropertyEditorSuppor
if ((s == null) || "".equals(s)) { if ((s == null) || "".equals(s)) {
// Leave target object empty // Leave target object empty
source.setDecorated(new PathBasedFilterInvocationDefinitionMap()); source.setDecorated(new RegExpBasedFilterInvocationDefinitionMap());
} else { } else {
// Check if we need to override the default definition map // Check if we need to override the default definition map
if (s.lastIndexOf(DIRECTIVE_PATTERN_TYPE_APACHE_ANT) != -1) { if (s.lastIndexOf(DIRECTIVE_PATTERN_TYPE_APACHE_ANT) != -1) {

Loading…
Cancel
Save