瀏覽代碼

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

Fix security flaw reported by c957861129d62331c5704d2f04d11e41.
Unknwon 6 年之前
父節點
當前提交
5129ed215e
共有 2 個文件被更改,包括 6 次插入6 次删除
  1. 1 1
      vendor/github.com/go-macaron/session/session.go
  2. 5 5
      vendor/vendor.json

+ 1 - 1
vendor/github.com/go-macaron/session/session.go

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

+ 5 - 5
vendor/vendor.json

@@ -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=",