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

On Thu, Dec 3, 2009 at 10:08 AM, Scott Weikert <[email protected]> wrote:
>
> Oh, it's easy enough to work-around. Doing that now.
>
> I'm just saying, it looks like a bug that *shouldn't* need work-arounds.
>
> Jason Fisher wrote:
>> As a hack to your script, how about adding a simple string test?
>>
>> <cfif not isValid("email", emailVal) or emailVal is not trim(emailVal)>
>> ... handle exception ...
>> </cfif>
>>
>> That would leverage isValid() for the actual string content, but it would
>> separately catch any address that hadn't been trimmed.
>>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:328804
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