mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-29 15:22:15 +00:00
SEC-1462: Added suggested patch (effectively the same as changes in 3.0.x and master branches).
This commit is contained in:
parent
6ad652ae97
commit
0acf262546
@ -48,7 +48,7 @@ public class SessionFixationProtectionFilter extends SpringSecurityFilter {
|
||||
protected void doFilterHttp(HttpServletRequest request, HttpServletResponse response, FilterChain chain)
|
||||
throws IOException, ServletException {
|
||||
// Session fixation isn't a problem if there's no session
|
||||
if(request.getSession(false) == null || request.getAttribute(FILTER_APPLIED) != null) {
|
||||
if(request.getSession(false) == null || request.getAttribute(FILTER_APPLIED) != null || !request.isRequestedSessionIdValid()) {
|
||||
chain.doFilter(request, response);
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user