Depending on the validation rules in my models CakePHP will fail on redirect with a PHP memory error.
[code] var $validate = array( 'email' => VALID_EMAIL, 'passphrase' => VALID_NOT_EMPTY, 'displayname' => VALID_NOT_EMPTY, ); [/code] Works. [code] var $validate = array( 'slug' => array( array( 'allowEmpty' => false, 'required' => true, 'rule' => 'alphaNumeric', 'message' => 'Slug URL should only contain alpha-numeric characters.' ), array( 'rule' => array('between', 3, 30), 'message' => 'Slug URL should be between 3 and 30 characters long.' ), array( 'rule' => 'isUnique', 'message' => 'Slug URL is already in use.' ) ), 'displayname' => array( array( 'allowEmpty' => false, 'required' => true, 'rule' => 'alphaNumeric', 'message' => 'Displayname should only contain alpha-numeric characters.' ), array( 'rule' => array('between', 3, 30), 'message' => 'Displayname should be between 3 and 30 characters long.' ), array( 'rule' => 'isUnique', 'message' => 'Displayname is already in use.' ) ), 'email' => array( array( 'allowEmpty' => false, 'required' => true, 'rule' => 'email', 'message' => 'Invalid Email address.' ), array( 'rule' => 'isUnique', 'message' => 'Email is already in use.' ) ), 'passphrase' => array( array( 'allowEmpty' => false, 'required' => true, 'rule' => 'alphaNumeric', 'message' => 'Invalid Password.' ) ) ); [/code] Breaks $this->redirect. Any ideas? Whitespace in validation part of the core? -Ben --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---