I won't presume to answer why but...

If you change-
'rule' => array('email', true),
to -
'rule' => array('email'),
it works for me.

Gary


On Fri, Jun 20, 2008 at 12:53 PM, J. Anderson <[EMAIL PROTECTED]> wrote:
>
> Before posting to Cake Trac and potentially wasting a developers time,
> maybe the group knows of this?
>
> Preliminaries:
> Version (from version.txt) 1.2.0.7125 RC1
> PHP Version: 5.2.5
> Platform: Apache 2.2.8
> OS: Windows XP
>
> Begin Code (From Model)
>
>    var $validate = array(
>        'email' => array(
>            'minimum-length' => array(
>                'rule' => array('minLength', 7),
>                'required' => true,
>                'allowEmpty' => false,
>                'message' => 'Invalid email format'
>            ),
>            'maximum-length' => array(
>                'rule' => array('maxLength', 80),
>                'message' => 'EMail address can not be more than 80
> characters'
>            ),
>            'email-format' => array(
>                'rule' => array('email', true),
>                'message' => 'Invalid email format'
>            ),
>        )
>    );
>
> End Code (From Model)
>
> When running, neither the validation code or the rest of the associate
> code produces any errors.  Most of the test cases I've run against the
> email validation work as expected.  Some of the test cases including a
> dash in the domain name do not.  For example:
>
> value: [EMAIL PROTECTED]
> result: fail
>
> value: [EMAIL PROTECTED]
> result: pass
>
> value: [EMAIL PROTECTED]
> result: fail
>
> value: [EMAIL PROTECTED]
> result: pass
>
> value: [EMAIL PROTECTED]
> result: fail
>
> By 'fail' I mean the result message is 'Invalid email format' as with
> clearly invalid entries.
>
>
> This is obviously not of any high priority as a custom validation can
> be subbed or added to obtain the correct results.
>
> Anyone else see similar results?
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to