Skip to content

Laravel 6: Email validation filter is too permissive #5070

Closed
@LukeTowers

Description

@LukeTowers

Originally reported by @datune.

Laravel introduced fancier email validation in 5.8 (laravel/framework#26503), but made it too permissive by default, supposedly following the RFC exactly (although there are inconsistencies reported). This has caused breaking changes in emails reported as valid even though they may not be: laravel/framework#28233, laravel/framework#27875.

We need to make sure that October overrides Laravel's email validator to make the default filter used email:filter, which uses PHP's built in email validator, instead of email:rfc which isn't even technically accurate to the RFC (reportedly).

We should still support the other filters used, we just need to change the default filter used: https://laravel.com/docs/6.x/validation#rule-email.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions