Browse Source

SEC-862: Make logoutSuccessUrl accessible to sub-classes.

Luke Taylor 17 years ago
parent
commit
ab6d29d927

+ 5 - 1
core/src/main/java/org/springframework/security/ui/logout/LogoutFilter.java

@@ -132,7 +132,7 @@ public class LogoutFilter extends SpringSecurityFilter {
         String targetUrl = request.getParameter("logoutSuccessUrl");
 
         if(!StringUtils.hasLength(targetUrl)) {
-            targetUrl = logoutSuccessUrl;
+            targetUrl = getLogoutSuccessUrl();
         }
 
         if (!StringUtils.hasLength(targetUrl)) {
@@ -167,6 +167,10 @@ public class LogoutFilter extends SpringSecurityFilter {
         this.filterProcessesUrl = filterProcessesUrl;
     }
 
+    protected String getLogoutSuccessUrl() {
+        return logoutSuccessUrl;
+    }    
+    
     protected String getFilterProcessesUrl() {
         return filterProcessesUrl;
     }