]> source.dussan.org Git - gitea.git/commit
fix: Fix to delete cookie when AppSubURL is non-empty (#30375) (#30468)
authorGiteabot <teabot@gitea.io>
Sun, 14 Apr 2024 11:45:51 +0000 (19:45 +0800)
committerGitHub <noreply@github.com>
Sun, 14 Apr 2024 11:45:51 +0000 (13:45 +0200)
commit222d16e6ea245fe28ada9ad9ad60eab7e886902e
treef8a1b3f0c5b6625a890194bb64f96bd12afbb203
parent09df5c9c7d35a211cc7224425e5b95b9ef9125e9
fix: Fix to delete cookie when AppSubURL is non-empty (#30375) (#30468)

Backport #30375 by @jtran

Cookies may exist on "/subpath" and "/subpath/" for some legacy reasons
(eg: changed CookiePath behavior in code). The legacy cookie should be
removed correctly.

Co-authored-by: Jonathan Tran <jonnytran@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Kyle D <kdumontnu@gmail.com>
modules/session/store.go
modules/web/middleware/cookie.go
services/auth/source/oauth2/store.go