MCPcopy Create free account
hub / github.com/gogs/gogs / NewFilePost

Function NewFilePost

internal/route/repo/editor.go:298–300  ·  view source on GitHub ↗
(c *context.Context, f form.EditRepoFile)

Source from the content-addressed store, hash-verified

296}
297
298func NewFilePost(c *context.Context, f form.EditRepoFile) {
299 editFilePost(c, f, true)
300}
301
302func DiffPreviewPost(c *context.Context, f form.EditPreviewDiff) {
303 // 🚨 SECURITY: Prevent path traversal.

Callers

nothing calls this directly

Calls 1

editFilePostFunction · 0.85

Tested by

no test coverage detected