From 38e3ef9ac0ad99ea7535243cf607bcee3fda8b72 Mon Sep 17 00:00:00 2001 From: Rsl1122 <24460436+Rsl1122@users.noreply.github.com> Date: Sun, 3 Jul 2022 11:34:33 +0300 Subject: [PATCH] Ignore non-auth cookies without value Affects issues: - Fixed #2458 --- .../plan/delivery/webserver/resolver/auth/LogoutResolver.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plan/common/src/main/java/com/djrapitops/plan/delivery/webserver/resolver/auth/LogoutResolver.java b/Plan/common/src/main/java/com/djrapitops/plan/delivery/webserver/resolver/auth/LogoutResolver.java index 69def1397..21f8d34f5 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/delivery/webserver/resolver/auth/LogoutResolver.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/delivery/webserver/resolver/auth/LogoutResolver.java @@ -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); }