mirror of https://github.com/gogs/gogs.git
vendor: update github.com/go-macaron/session (#5469)
Fix security flaw reported by c957861129d62331c5704d2f04d11e41.pull/5481/head
parent
b93079f1c1
commit
5129ed215e
|
@ -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()
|
||||
|
|
|
@ -135,16 +135,16 @@
|
|||
"revisionTime": "2016-06-27T17:00:12Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "DsbAcljMg4dSIIf6N/RJEJY6nTk=",
|
||||
"checksumSHA1": "GKW4VF4zp39yj16pd412H9uZyCk=",
|
||||
"path": "github.com/go-macaron/session",
|
||||
"revision": "487775536c781f5fd19b36c9421b79ba2b8a119d",
|
||||
"revisionTime": "2018-10-24T13:41:25Z"
|
||||
"revision": "330e4e4d8beb7b00111ac34539561f46f94c4458",
|
||||
"revisionTime": "2018-10-24T13:54:22Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "jVW5CmzplA0UDjai0AFYJFVXAJk=",
|
||||
"path": "github.com/go-macaron/session/redis",
|
||||
"revision": "66031fcb37a0fff002a1f028eb0b3a815c78306b",
|
||||
"revisionTime": "2015-10-14T03:41:01Z"
|
||||
"revision": "330e4e4d8beb7b00111ac34539561f46f94c4458",
|
||||
"revisionTime": "2018-10-24T13:54:22Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "VMRkwnbl0mKWWvK/62CnIlv1oOg=",
|
||||
|
|
Loading…
Reference in New Issue