forgejo/services
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
..
actions fix(actions): the trigger user of a schedule is the action user 2024-04-14 12:53:20 +02:00
agit
asymkey
attachment
auth
automerge
context [PORT] drop utils.IsExternalURL (and expand IsRiskyRedirectURL tests) (#3167) 2024-04-15 13:03:08 +00:00
contexttest add label filters in org/{org_name}/issues 2024-04-04 17:57:11 +05:30
convert Count downloads for tag archives 2024-04-08 12:51:27 +02:00
cron
doctor Count downloads for tag archives 2024-04-08 12:51:27 +02:00
externalaccount
feed
forgejo
forms Merge pull request 'Add optional pronoun field in user settings' (#1518) from hazy/forgejo:feat/pronoun-field into forgejo 2024-04-06 12:23:54 +00:00
gitdiff
indexer
issue
lfs
mailer
markup
migrations
mirror
notify
org
packages
pull Do not update PRs based on events that happened before they existed 2024-04-11 11:16:23 +02:00
release Count downloads for tag archives 2024-04-08 12:51:27 +02:00
repository Merge pull request 'Do not update PRs based on events that happened before they existed' (#2932) from earl-warren/forgejo:wip-superfluous into forgejo 2024-04-11 12:07:07 +00:00
secrets
task
uinotification
user
webhook webhook: add admin-hooks tests 2024-04-09 20:02:14 +02:00
wiki