vendor: update github.com/go-macaron/session (#5469)

Fix security flaw reported by c957861129d62331c5704d2f04d11e41.
This commit is contained in:
Unknwon
2018-10-24 09:59:07 -04:00
parent b93079f1c1
commit 5129ed215e
2 changed files with 6 additions and 6 deletions

View File

@@ -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()