0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-03-08 20:52:03 -05:00
forgejo/routers/web
oliverpool 16879b07d2 [PORT] drop utils.IsExternalURL (and expand IsRiskyRedirectURL tests) (#3167)
Related to  #2773
Related to Refactor URL detection [gitea#29960](https://github.com/go-gitea/gitea/pull/29960)
Related to Refactor external URL detection [gitea#29973](https://github.com/go-gitea/gitea/pull/29973)

I added a bunch of tests to `httplib.TestIsRiskyRedirectURL` and some cases should be better handled (however it is not an easy task).

I also ported the removal of `utils.IsExternalURL`, since it prevents duplicated (subtle) code.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3167
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: oliverpool <git@olivier.pfad.fr>
Co-committed-by: oliverpool <git@olivier.pfad.fr>
2024-04-15 13:03:08 +00:00
..
admin webhook: add admin-hooks tests 2024-04-09 20:02:14 +02:00
auth [PORT] drop utils.IsExternalURL (and expand IsRiskyRedirectURL tests) (#3167) 2024-04-15 13:03:08 +00:00
devtest
events
explore
feed
healthcheck Add health-check test 2024-04-06 00:34:55 +02:00
misc
org [REFACTOR] use Icon from interface in webhook list 2024-03-30 16:00:06 +01:00
repo fix code search template 2024-04-11 14:52:37 +00:00
shared Add API for Variables (#29520) 2024-04-07 10:57:53 +02:00
user Merge pull request '[gitea] week 15 cherry pick' (#3091) from algernon/forgejo:wcp/week-15 into forgejo 2024-04-09 05:31:44 +00:00
base.go
githttp.go
goget.go
home.go
metrics.go
nodeinfo.go
swagger_json.go
web.go [CHORE] Remove Microsoft SQL Server Support 2024-04-05 23:37:36 +02:00
webfinger.go fix: cleanup webfinger URI parsing 2024-04-04 16:52:25 +00:00