Ignore non-auth cookies without value

Affects issues:
- Fixed #2458
This commit is contained in:
Rsl1122 2022-07-03 11:34:33 +03:00
parent aa67794881
commit 38e3ef9ac0

View File

@ -47,8 +47,8 @@ public class LogoutResolver implements NoAuthResolver {
if (cookie.isEmpty()) continue;
String[] split = cookie.split("=");
String name = split[0];
String value = split[1];
if ("auth".equals(name)) {
if ("auth".equals(name) && split.length > 1) {
SfoundCookie = split[1];
foundCookie = value;
activeCookieStore.removeCookie(value);
}