[upstream] egulias/email-validator validates email address insufficiently

Created on 25 June 2024, 5 months ago

Problem/Motivation

While building user-facing forms with the webform module, I noticed that some invalid email addresses are considered valid - in my case it's address without a domain suffix (such as name.surname@hostname. This is a known issue with egulias/email-validator library we're using.

But there are multiple similar unsolved issues, e.g. https://github.com/egulias/EmailValidator/issues/372

Steps to reproduce

Run

\Drupal::service('email.validator')->isValid("name.surname@server")

and see it's considered a valid email address.

Proposed resolution

Preferably help fix https://github.com/egulias/EmailValidator/issues/359 and update to version containing the fix.
Alternatively, create a fork of egulias/email-validator and fix the issue there.

Remaining tasks

πŸ› Bug report
Status

Postponed: needs info

Version

11.0 πŸ”₯

Component
BaseΒ  β†’

Last updated about 2 hours ago

Created by

πŸ‡¨πŸ‡ΏCzech Republic milos.kroulik

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @milos.kroulik
  • Status changed to Postponed: needs info 5 months ago
  • This has been discussed in the past. Please look over the related issues. A core committer closed one of them based on known workarounds.

Production build 0.71.5 2024