Hi,
I wouldn't even use a post validator in this case, but rather a pre
validator with a callback validator:
Example:
class MyForm ...
{
public function configure()
{
...
$this->setPreValidator(new sfValidatorCallback(array(
'callback' => array($this, 'preValidate')
)));
}
public function preValidate(sfValidatorCallback $validator, array $values)
{
if ($values['validateme'] == 'OF_COURSE_NOT!')
{
$this->validatorSchema['evil_xss_field'] = new sfValidatorPass();
..
}
}
}
etc.
Bernhard
--
You received this message because you are subscribed to the Google Groups
"symfony users" 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/symfony-users?hl=en.