Commons Validator
  1. Commons Validator
  2. VALIDATOR-50

[validator] Email validator valids email with whitespace

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.0 Release
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: Solaris
      Platform: Other

      Description

      If the whitespace is before or after "@" the email is valid.
      For example : "foo @bar.com" is valid but it shouldn't
      and "foo@ bar.com" is valid but it shouldn't too.
      (Cf. RFC)

        Activity

        Hide
        Niall Pemberton added a comment -

        Thanks for reporting this. I have fixed the server side validation (JavaScript
        worked correctly).

        http://svn.apache.org/viewcvs?rev=367161&view=rev

        This will be available to test out in the next nightly build:

        http://cvs.apache.org/builds/jakarta-commons/nightly/commons-validator/

        closing as FIXED

        Show
        Niall Pemberton added a comment - Thanks for reporting this. I have fixed the server side validation (JavaScript worked correctly). http://svn.apache.org/viewcvs?rev=367161&view=rev This will be available to test out in the next nightly build: http://cvs.apache.org/builds/jakarta-commons/nightly/commons-validator/ closing as FIXED

          People

          • Assignee:
            Unassigned
            Reporter:
            Stéphanie Codron
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development