I would agree that "[email protected]" should fail validation.

But what about "[email protected]  " or "[email protected]  some text"?

An email to "[email protected]  " would work just fine. "[email protected]
 some text" may or may not, I'm not 100% certain how an SMTP server
would deal with that. I'd probably want my validation routine to fail
that one I think as email addresses with spaces in them are not valid
except in the special case of "Bob Smith<[email protected]>". I'm not
sure how the isValid routine deals with that special case. If it is
allowing "[email protected] some text" to pass validation, I'd report it
as a bug.

Cheers,
Judah

On Thu, Dec 3, 2009 at 11:02 AM, Scott Weikert <[email protected]> wrote:
>
> Basically, yeah. That's a good way to put it - it's doing an implicit trim.
>
> The string going into the IsValid is a legit email, followed by some
> other characters - not just spaces.
>
> Those extra charactesrs *should* trip the validation and return false -
> but it's not. And even if it were spaces on the end, that should trip a
> false result as well.
>
> And yes, I also tend to trim strings as a general rule. But these are
> getting in due to doing bulk-inserts using SQL Server.
>
> Judah McAuley wrote:
>> I'm not entirely sure what you are considering as a bug here. Are you
>> saying that the isValid is doing a Trim implicitly and you think it
>> shouldn't? I don't think I'd call that a bug, myself. When I write
>> validation routines, I tend to trim strings automatically before
>> running my validation against them, that's just common practice. I
>> would expect Adobe to do so in its built-in functions.
>>
>> Judah
>>
>>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328810
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to