mirror of
https://github.com/go-gitea/gitea.git
synced 2026-11-27 22:07:33 +08:00
`FormStrings` only parsed the form with `ParseMultipartForm`, which returns `http.ErrNotMultipart` for urlencoded bodies, so it returned nil unless something else had parsed the form first. The CSRF check used to do that, and since it was removed the "Associate accessible OIDs" button on the LFS pointers page sends no OIDs and fails with a 500. The global multipart parse in the web and API contexts is also removed, form helpers now parse on demand. Fixes: https://github.com/go-gitea/gitea/issues/40551 Assisted-by: Claude Code:claude-opus-5-5 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: silverwind <me@silverwind.io>