1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-02-26 20:01:27 +00:00
forgejo/routers/web
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
..
admin chore: load 2fa status for user search when needed (#6727) 2025-01-29 17:57:55 +00:00
auth fix: delay deleting authorization token (#6937) 2025-02-17 11:09:33 +00:00
devtest Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
events Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
explore fix: set explore pages to configurable default sort (#6708) 2025-01-31 10:38:03 +00:00
feed Add pubdate for repository rss and add some tests (#33411) 2025-02-02 12:01:29 +01:00
healthcheck Add health-check test 2024-04-06 00:34:55 +02:00
misc fix: Preview picture not visible on Markdown file (#5781) 2024-11-23 15:00:18 +00:00
org fix(sec): permission check for project issue 2025-02-08 07:22:10 +00:00
repo fix: do not allow SSH url for migration (#7004) 2025-02-21 07:57:06 +00:00
shared fix(sec): web route update and delete runner variables 2025-02-08 07:21:14 +00:00
user feat: add pronoun privacy option (#6773) 2025-02-15 13:07:15 +00:00
base.go Fix missing signature key error when pulling Docker images with SERVE_DIRECT enabled (#32365) 2024-11-05 09:33:15 +01:00
githttp.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
goget.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
home.go Rewrite OpenGraph Header 2025-01-01 20:43:20 +01:00
metrics.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
nodeinfo.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
swagger_json.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
web.go Update 2024-12-18 22:33:22 +01:00
webfinger.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00