forgejo/routers/web
Gergely Nagy b08aef967e
Use PostFormValue instead of PostForm.Get
In `repo.RemoveDependency`, use `PostFormValue` instead of
`PostForm.Get`. The latter requires `ParseForm()` to be called prior,
and in this case, has no benefit over `PostFormValue` anyway (which
calls `ParseForm()` if necessary).

While this currently does not cause any issue as far as I can tell, it
feels like a bug lying in wait for the perfect opportunity. Lets squash
it before it can do harm.

Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
2024-05-02 10:51:07 +02:00
..
admin ldap: default domain name (#3414) 2024-04-26 22:38:58 +00:00
auth feat: implement PKCE when acting as oauth2 client (for user login) 2024-04-29 11:20:26 +02:00
devtest
events
explore Unify search boxes (#29530) 2024-03-20 12:31:05 +00:00
feed
healthcheck Add health-check test 2024-04-06 00:34:55 +02:00
misc
org Fix project description rendering for org (#30587) 2024-04-21 16:28:16 +02:00
repo Use PostFormValue instead of PostForm.Get 2024-05-02 10:51:07 +02:00
shared Add API for Variables (#29520) 2024-04-07 10:57:53 +02:00
user Convert the remaining interface{}s to any 2024-04-15 20:01:36 +02:00
base.go
githttp.go
goget.go
home.go
metrics.go
nodeinfo.go
swagger_json.go
web.go Show repo activities even if only code unit active or git repo is empty but issue is active (#3455) 2024-04-28 13:47:52 +00:00
webfinger.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00