Skip to content

Email validation allows incorrect emailaddress #929

Closed
@GertjanBrouwer

Description

@GertjanBrouwer
  • Lumen Version: 5.8.*
  • PHP Version: 7.3
  • Database Driver & Version: MariaDB

Description:

When using the Lumen validator for emailadresses it will allow an emailadress that is not valid.
The emailaddress used: herr@ notice the space after the @-sign.

Steps To Reproduce:

$validator = Validator::make(['email' => 'herr@ '], [
    'email' => 'required|email',
]);

dd($validator->fails()); // returns false, which is not correct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions