forgejo-aneksajo/services/forms
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
auth_form.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
org.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
package_form.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
repo_branch_form.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
repo_form.go [v12.0/forgejo] fix: don't allow credentials in migrate/push mirror URL (#9078) 2025-08-30 18:42:39 +02:00
repo_form_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
repo_tag_form.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
report_abuse.go feat!: Abusive content reporting (#6977) 2025-05-18 08:05:16 +00:00
runner.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
user_form.go [v12.0/forgejo] fix: email comments are removed from email addresses (#9083) 2025-08-30 18:45:30 +02:00
user_form_auth_openid.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
user_form_hidden_comments.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
user_form_test.go [v12.0/forgejo] fix: email comments are removed from email addresses (#9083) 2025-08-30 18:45:30 +02:00