forgejo/routers/web/repo/setting
forgejo-backport-action fa8d75b3e5 [v11.0/forgejo] fix: validate input for default_{merge,update}_style (#7401)
**Backport:** https://codeberg.org/forgejo/forgejo/pulls/7395

- Add `binding:"In(...)"` to the `default_merge_style` and `default_update_style` fields to only accept recognized merge and update styles.
- Resolves forgejo/forgejo#7389
- Added integration test for the API (`binding` works in the exact same way for the API and web routes).

Co-authored-by: Gusted <postmaster@gusted.xyz>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7401
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
Co-committed-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
2025-03-31 09:43:46 +00:00
..
avatar.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
collaboration.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
default_branch.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
deploy_key.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
git_hooks.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
lfs.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
main_test.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
protected_branch.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
protected_tag.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
runners.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
secrets.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
setting.go [v11.0/forgejo] fix: validate input for default_{merge,update}_style (#7401) 2025-03-31 09:43:46 +00:00
settings_test.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
variables.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
webhook.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00