Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-13476

Mail validation doesn't accept ' characters in email addresses

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Medium Medium
    • None
    • 3.10.0, 4.0.0
    • None

    Description

      The email validation regex in eZ Publish, in lib/ezutils/classes/ezmail.php, does not accept apostrophe characters in email addresses, which are legal according to the RFC. From RFC3696:

      Without quotes, local-parts may consist of any combination of
      alphabetic characters, digits, or any of the special characters

      ! # $ % & ' * + - / = ? ^ _ ` .

      { | }

      ~

      As an aside, I've noticed that the ezcMail component accepts ' characters, among others.

      Steps to reproduce

      1. Try to register an account using an email address containing a "'" character

      Attachments

        Activity

          People

            unknown unknown
            mgdm mgdm
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: