/** * Binds the form with input values, adding recaptcha values * @param array $taintedValues An array of input values * @param array $taintedFiles An array of uploaded files (in the $_FILES or $_GET format) */ public function bind(array $taintedValues = null, array $taintedFiles = null) { if (sfConfig::get('app_recaptcha_active', false)) { $request = sfContext::getInstance()->getRequest(); $taintedValues['challenge'] = $request->getParameter('recaptcha_challenge_field'); $taintedValues['response'] = $request->getParameter('recaptcha_response_field'); } parent::bind($taintedValues, $taintedFiles); }