mirror of
1
Fork 0
forgejo/routers/web/repo/setting
Gusted e8ebb5d6e3 fix: do not allow SSH url for migration (#7004)
- Add a new function `IsPushMirrorURLAllowed` that will allow `ssh://` url and make the existing `IsMigrateURLAllowed` not allow such URLs anymore.
- Resolves forgejo/forgejo#6960
- Existing integration tests make sure that SSH urls are still allowed for the push mirror feature and added unit test to ensure that `IsMigrateURLAllowed` no longer allows SSH urls.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7004
Reviewed-by: 0ko <0ko@noreply.codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-02-21 07:57:06 +00:00
..
avatar.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
collaboration.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
default_branch.go [ACTIONS] port scheduled actions from Gitea 2024-03-26 16:51:56 +01:00
deploy_key.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
git_hooks.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
lfs.go Show lock owner instead of repo owner on LFS setting page (#31788) 2024-08-18 05:47:06 +02:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
protected_branch.go [PORT] gitea#30430: Fix rename branch 500 when the target branch is deleted but exist in database 2024-04-15 16:03:09 +02:00
protected_tag.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
runners.go fix(sec): web route delete runner 2025-02-08 07:21:14 +00:00
secrets.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
setting.go fix: do not allow SSH url for migration (#7004) 2025-02-21 07:57:06 +00:00
settings_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
variables.go fix(sec): web route update and delete runner variables 2025-02-08 07:21:14 +00:00
webhook.go [CHORE] Use forked `binding` library 2024-11-05 22:47:34 +01:00