Uploaded image for project: 'Commons Validator'
  1. Commons Validator
  2. VALIDATOR-278

EmailValidator approves email addresses with hostnames starting with a dash/hyphen

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.3.1 Release
    • Fix Version/s: 1.4.0 Release
    • Component/s: None
    • Labels:
      None

      Description

      These examples returns true

      EmailValidator.getInstance().isValid("someone@-test.com"); // hostname starts with dash/hyphen
      EmailValidator.getInstance().isValid("someone@test-.com"); // hostname ends with dash/hypen
      

      but should return false according to Wikipedia: Hostname labels cannot begin or end with a hyphen.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              orby Pål Orby
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: