forgejo-aneksajo/routers/web/admin
forgejo-backport-action 1bc42842ba [v12.0/forgejo] fix: email comments are removed from email addresses (#9083)
**Backport:** https://codeberg.org/forgejo/forgejo/pulls/9074

When registering with an email account including a comment (e.g. `me@example.com (a comment here)`), the comment is removed from the email address. It was possible to include an email address in the comment to bypass the block list. For instance if registering with `me@evilcorp.com (me@example.com)` the mail would incorrectly be verified against the block list using the comment instead of `@evilcorp.com`. This is a regression introduced in Forgejo v12.

<!--start release-notes-assistant-->

## Release notes
<!--URL:https://codeberg.org/forgejo/forgejo-->
- Security bug fixes
  - [PR](https://codeberg.org/forgejo/forgejo/pulls/9074): <!--number 9074 --><!--line 0 --><!--description ZW1haWwgY29tbWVudHMgYXJlIHJlbW92ZWQgZnJvbSBlbWFpbCBhZGRyZXNzZXM=-->email comments are removed from email addresses<!--description-->
<!--end release-notes-assistant-->

Co-authored-by: famfo <famfo@famfo.xyz>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/9083
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-08-30 18:45:30 +02:00
..
admin.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
admin_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
applications.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
auths.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
config.go feat!: Abusive content reporting (#6977) 2025-05-18 08:05:16 +00:00
diagnosis.go fix: delay-write trace.dat for forgejo diagnosis (#7597) 2025-04-22 08:14:41 +00:00
emails.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
hooks.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
main_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
notice.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
orgs.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
packages.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
queue.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
queue_tester.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
repos.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
runners.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
stacktrace.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
users.go [v12.0/forgejo] fix: email comments are removed from email addresses (#9083) 2025-08-30 18:45:30 +02:00
users_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00