diff options
author | 无闻 <joe2010xtmf@163.com> | 2014-09-21 12:11:40 -0400 |
---|---|---|
committer | 无闻 <joe2010xtmf@163.com> | 2014-09-21 12:11:40 -0400 |
commit | d325b23dbb44fe3b1e542ee330185610e861279e (patch) | |
tree | cef9d08801579d72dfb5c42e8bf8019f23f9dff6 /modules/middleware/repo.go | |
parent | cb0ea46d1e06ec64358807d4e0fc49d9ecece311 (diff) | |
parent | 976f1486e01548bfb420a7c809ede6fc273e4a26 (diff) |
Merge pull request #492 from chadoe/suburlcookie
Set cookiepath to AppSubUrl
Diffstat (limited to 'modules/middleware/repo.go')
-rw-r--r-- | modules/middleware/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/middleware/repo.go b/modules/middleware/repo.go index 79b01133..f17018dd 100644 --- a/modules/middleware/repo.go +++ b/modules/middleware/repo.go @@ -298,7 +298,7 @@ func RequireTrueOwner() macaron.Handler { return func(ctx *Context) { if !ctx.Repo.IsTrueOwner && !ctx.Repo.IsAdmin { if !ctx.IsSigned { - ctx.SetCookie("redirect_to", "/"+url.QueryEscape(setting.AppSubUrl+ctx.Req.RequestURI)) + ctx.SetCookie("redirect_to", "/"+url.QueryEscape(setting.AppSubUrl+ctx.Req.RequestURI), 0, setting.AppSubUrl) ctx.Redirect(setting.AppSubUrl + "/user/login") return } |