SEC-539: Removed filterApplied boolean.

This commit is contained in:
Luke Taylor 2007-08-28 19:56:33 +00:00
parent e8d11f28f2
commit 27ef2caf45
1 changed files with 1 additions and 4 deletions

View File

@ -218,7 +218,6 @@ public class HttpSessionContextIntegrationFilter implements InitializingBean, Fi
// Proceed with chain
int contextWhenChainProceeded = SecurityContextHolder.getContext().hashCode();
boolean filterApplied = true;
request.setAttribute(FILTER_APPLIED, Boolean.TRUE);
@ -234,9 +233,7 @@ public class HttpSessionContextIntegrationFilter implements InitializingBean, Fi
// Store context back to HttpSession
storeSecurityContextInSession(request, httpSessionExistedAtStartOfRequest, contextWhenChainProceeded);
if (filterApplied) {
request.removeAttribute(FILTER_APPLIED);
}
request.removeAttribute(FILTER_APPLIED);
// Remove SecurityContextHolder contents
SecurityContextHolder.clearContext();