mirror of
https://github.com/gogs/gogs.git
synced 2026-05-07 18:15:52 +02:00
vendor: update github.com/go-macaron/session (#5469)
Fix security flaw reported by c957861129d62331c5704d2f04d11e41.
This commit is contained in:
2
vendor/github.com/go-macaron/session/session.go
generated
vendored
2
vendor/github.com/go-macaron/session/session.go
generated
vendored
@@ -257,7 +257,7 @@ func (m *Manager) sessionID() string {
|
||||
func (m *Manager) Start(ctx *macaron.Context) (RawStore, error) {
|
||||
sid := ctx.GetCookie(m.opt.CookieName)
|
||||
if len(sid) > 0 && m.provider.Exist(sid) {
|
||||
return m.provider.Read(sid)
|
||||
return m.Read(sid)
|
||||
}
|
||||
|
||||
sid = m.sessionID()
|
||||
|
||||
Reference in New Issue
Block a user