You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/modules/context
zeripath e32ab429ff
Prevent NPE on update mirror settings (#19864)
A `repo_model.Mirror` repository field (`.Repo`) will not automatically
be set, but is used without checking in mirror_pull.go:UpdateAddress.
This will cause an NPE.

This PR changes UpdateAddress to use the helper function GetRepository()
helping prevent future NPEs but also changes modules/context/repo.go to
ensure that the Mirror.Repo is set.

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2 years ago
..
access_log.go Pass down SignedUserName down to AccessLogger context (#16605) 3 years ago
api.go Call MultipartForm.RemoveAll when request finishes (#19606) 2 years ago
api_org.go Move organization related structs into sub package (#18518) 2 years ago
api_test.go format with gofumpt (#18184) 2 years ago
auth.go Refactor CSRF protection modules, make sure CSRF tokens can be up-to-date. (#19337) 2 years ago
captcha.go format with gofumpt (#18184) 2 years ago
context.go Call MultipartForm.RemoveAll when request finishes (#19606) 2 years ago
csrf.go Refactor CSRF protection modules, make sure CSRF tokens can be up-to-date. (#19337) 2 years ago
form.go Add config options to hide issue events (#17414) 2 years ago
org.go Only show accessible teams in dashboard dropdown list (#19642) 2 years ago
package.go Fix org package owner permissions (#19742) 2 years ago
pagination.go Remove legacy unmaintained packages, refactor to support change default locale (#19308) 2 years ago
permission.go Move access and repo permission to models/perm/access (#19350) 2 years ago
private.go Call MultipartForm.RemoveAll when request finishes (#19606) 2 years ago
repo.go Prevent NPE on update mirror settings (#19864) 2 years ago
response.go format with gofumpt (#18184) 2 years ago
utils.go Never use /api/v1 from Gitea UI Pages (#19318) 2 years ago
xsrf.go Refactor CSRF protection modules, make sure CSRF tokens can be up-to-date. (#19337) 2 years ago
xsrf_test.go Refactor CSRF protection modules, make sure CSRF tokens can be up-to-date. (#19337) 2 years ago