Skip to content

fix: validating email addresses from Contacts#13173

Open
madbob wants to merge 1 commit into
nextcloud:mainfrom
madbob:issue_7121
Open

fix: validating email addresses from Contacts#13173
madbob wants to merge 1 commit into
nextcloud:mainfrom
madbob:issue_7121

Conversation

@madbob

@madbob madbob commented Jun 28, 2026

Copy link
Copy Markdown
Collaborator

The Contacts app now validates email addresses on his own (nextcloud/contacts#4380) so #7121 may be considered obsolete.

Yet, an extra check in ContactsIntegration may prevent broken imports or other issues on the Contacts side.

Fixes #7121

@kesselb

kesselb commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Thanks for your PR 👍

Could you please fix the dco check?

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds an additional layer of recipient email validation when importing autocomplete suggestions from the Contacts app, preventing invalid contact email values (e.g., joe.com) from being offered as selectable recipients in the Mail composer.

Changes:

  • Validate each Contacts-provided email address with filter_var(..., FILTER_VALIDATE_EMAIL) before adding it as an autocomplete recipient.

Signed-off-by: Roberto Guido <info@madbob.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing recipient address validation

4 participants