Development

#8588 ([PATCH] sfValidatorEmail has wrong regexp)

You must first sign up to be able to contribute.

Ticket #8588 (new defect)

Opened 3 years ago

Last modified 2 years ago

[PATCH] sfValidatorEmail has wrong regexp

Reported by: stormsson Assigned to: fabien
Priority: major Milestone: 1.4.11
Component: validation Version: 1.4.4
Keywords: sfvalidatoremail Cc:
Qualification: Unreviewed

Description

Hi all, i noticed that the regexp that validates the email is not rfc compliant, so it allows wrong email addresses:

it accepts emails like

* wrong.@domain.com ( dot preceding @ ) * .wrong@domain.com ( dot as first character ) * hello..world@domain.com ( 2+ sequential dots)

(first bug report,so sorry if i make something wrong )

Attachments

sfValidatorEmailTest.diff (0.7 kB) - added by odino on 08/25/10 12:17:03.

Change History

04/27/10 16:54:39 changed by stormsson

( sorry, the wikiformatting doesn't seem to work... the addresses that do not work are

wrong.@domain.com ( dot preceding @ )

.wrong@domain.com ( dot as first character )

hello..world@domain.com ( 2+ sequential dots)

08/25/10 12:16:48 changed by odino

This issue seems to be fixed in 1.4.6, I attach a patch of the unit test which seems to confirm this.

08/25/10 12:17:03 changed by odino

  • attachment sfValidatorEmailTest.diff added.

08/25/10 12:17:31 changed by odino

  • summary changed from sfValidatorEmail has wrong regexp to [PATCH] sfValidatorEmail has wrong regexp.

03/18/11 11:46:31 changed by Postal

it also accepts emails with mutated vowel like the german 'ß' Hauptstraße@domain.com