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.

Ben Alex 19 năm trước cách đây
mục cha
commit
4d166a6867

+ 1 - 1
core/src/main/java/org/acegisecurity/intercept/web/FilterInvocationDefinitionSourceEditor.java

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