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.
gitea/modules/context
Norwin 245596e130
don't try to interpret treepath as hash (#17272)
...when path contains no hash-path-separator ('/')

This is a workaround to #17179.

Entering this case when `path` does not contain a '/' does not really
make sense, as that means the tree path is empty, but this case is only
entered for routes that expect a non-empty tree path.

Treepaths like <40-char-dirname>/<filename> will still fail,
but hopefully don't occur that often. A more complete fix that avoids
this case too is outlined in #17185, but too big of a change to backport
4 years ago
..
access_log.go Pass down SignedUserName down to AccessLogger context (#16605) (#16616) 4 years ago
api.go Pass down SignedUserName down to AccessLogger context (#16605) (#16616) 4 years ago
api_org.go Golint fixed for modules/context 8 years ago
api_test.go fix API link header (#7298) 6 years ago
auth.go [refactor] replace int with httpStatusCodes (#15282) 4 years ago
captcha.go Fix captcha (#14488) 4 years ago
context.go Fix bug of get context user (#17169) (#17172) 4 years ago
csrf.go Redirect on bad CSRF instead of presenting bad page (#14937) 4 years ago
form.go [API] ListReleases add filter for draft and pre-releases (#16175) 4 years ago
org.go Unified link creation. (#15619) 4 years ago
pagination.go [Feature] add precise search type for Elastic Search (#12869) 4 years ago
permission.go Update docs and comments to remove macaron (#14491) 4 years ago
private.go Update docs and comments to remove macaron (#14491) 4 years ago
repo.go don't try to interpret treepath as hash (#17272) 4 years ago
response.go Stop calling WriteHeader in Write (#15862) 4 years ago
xsrf.go Move macaron to chi (#14293) 4 years ago
xsrf_test.go Move macaron to chi (#14293) 4 years ago