]> source.dussan.org Git - gitea.git/commit
fix: Fix to delete cookie when AppSubURL is non-empty (#30375)
authorJonathan Tran <jonnytran@gmail.com>
Sun, 14 Apr 2024 04:46:56 +0000 (00:46 -0400)
committerGitHub <noreply@github.com>
Sun, 14 Apr 2024 04:46:56 +0000 (12:46 +0800)
commitb18c04ebde94e23d97da4958173faea843d5344f
tree56b8cfd225e32f18e4e6f6774f64eae18a10e4bc
parentc77e8140bc2ac6521dbebfb77613dce2648bfcb8
fix: Fix to delete cookie when AppSubURL is non-empty (#30375)

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: 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