diff options
Diffstat (limited to 'internal/context/context.go')
-rw-r--r-- | internal/context/context.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/context/context.go b/internal/context/context.go index 3504ad71..4e555280 100644 --- a/internal/context/context.go +++ b/internal/context/context.go @@ -312,7 +312,7 @@ func Contexter() macaron.Handler { // If request sends files, parse them here otherwise the Query() can't be parsed and the CsrfToken will be invalid. if c.Req.Method == "POST" && strings.Contains(c.Req.Header.Get("Content-Type"), "multipart/form-data") { - if err := c.Req.ParseMultipartForm(conf.AttachmentMaxSize << 20); err != nil && !strings.Contains(err.Error(), "EOF") { // 32MB max size + if err := c.Req.ParseMultipartForm(conf.Attachment.MaxSize << 20); err != nil && !strings.Contains(err.Error(), "EOF") { // 32MB max size c.ServerError("ParseMultipartForm", err) return } @@ -324,7 +324,7 @@ func Contexter() macaron.Handler { log.Trace("CSRF Token: %v", c.Data["CSRFToken"]) c.Data["ShowRegistrationButton"] = !conf.Auth.DisableRegistration - c.Data["ShowFooterBranding"] = conf.ShowFooterBranding + c.Data["ShowFooterBranding"] = conf.Other.ShowFooterBranding c.renderNoticeBanner() |