ColdFusion 10.0  -  Bug 3725691

Created on Tuesday, March 18, 2014

Login for more options


isValid() accepts email addresses with leading / trailing whitespace.


isValid( "email" ) will return True for email addresses that have leading and or trailing whitespace.


Test Configuration

App Language(s) English
OS Language(s) English
Platform(s) Mac 10 All

Notes (1)

  • Rupesh Kumar

    10:19:18 PM GMT+00:00 Nov 2, 2014

    As per the RFC for email address, there should not be any space, unless escaped. So considering the RFC, this should be fixed.

    However, Java Mail API and cfmail automatically trims the mail address before using it and therefore any leading/trailing space would not cause any error there. There might be some code which is relying on this incorrect behavior of isValid and they would need to be changed. Do you see any concern?

Duplicate ID
Reported By Ben Nadel


State Open
Status ToTrack
Reason PRNeedInfo


Priority 2-Medium
Frequency All users will encounter
Failure Type Incorrectly Functioning
Product Area Core Runtime


Found In Build Final
Fixed In Build

Attachments (0)

No Files Attached

Votes (2)

  • John Sieber

    10:59:57 AM GMT+00:00 Mar 26, 2014

    Forces us to use trim before using the isValid method. Should not be necessary.

  • Adam Cameron

    6:24:15 AM GMT+00:00 Mar 18, 2014

    +1 / [subscribe]


Your session has expired! Click to login
Current form data will be preserved