<commit_before><?php

require_once dirname(__FILE__).'/sfEasyAuthUserGeneratorConfiguration.class.php';
require_once dirname(__FILE__).'/sfEasyAuthUserGeneratorHelper.class.php';

/**
 * sfEasyAuthUser actions.
 *
 * @package    sfEasyAuthPlugin
 * @subpackage sfEasyAuthUser
 * @author     <NAME>
 * @version    SVN: $Id: BasesfEasyAuthUserActions.class.php 12965 2008-11-13 06:02:38Z fabien $
 */
class BasesfEasyAuthUserActions extends autoSfEasyAuthUserActions
{
}<commit_msg>Modified the processForm method to fix a redirection bug where symfony was generating invalid urls<commit_after><?php

require_once dirname(__FILE__).'/sfEasyAuthUserGeneratorConfiguration.class.php';
require_once dirname(__FILE__).'/sfEasyAuthUserGeneratorHelper.class.php';

/**
 * sfEasyAuthUser actions.
 *
 * @package    sfEasyAuthPlugin
 * @subpackage sfEasyAuthUser
 * @author     <NAME>
 * @version    SVN: $Id: BasesfEasyAuthUserActions.class.php 12965 2008-11-13 06:02:38Z fabien $
 */
class BasesfEasyAuthUserActions extends autoSfEasyAuthUserActions
{
  protected function processForm(sfWebRequest $request, sfForm $form)
  {
    $form->bind($request->getParameter($form->getName()), $request->getFiles($form->getName()));
    if ($form->isValid())
    {
      $notice = $form->getObject()->isNew() ? 'The item was created successfully.' : 'The item was updated successfully.';

      $sf_easy_auth_user_base = $form->save();

      $this->dispatcher->notify(new sfEvent($this, 'admin.save_object', array('object' => $sf_easy_auth_user_base)));

      if ($request->hasParameter('_save_and_add'))
      {
        $this->getUser()->setFlash('notice', $notice.' You can add another one below.');

        $this->redirect('@sf_easy_auth_user_new');
      }
      else
      {
        $this->getUser()->setFlash('notice', $notice);

        $this->redirect(array('sf_route' => 'sf_easy_auth_user'));
      }
    }
    else
    {
      $this->getUser()->setFlash('error', 'The item has not been saved due to some errors.', false);
    }
  }
}
{'fraction_non_alphanumeric': 0.14144898965007394, 'fraction_numerical': 0.018728437654016758, 'mean_word_length': 4.286458333333333, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5450456', 'n_tokens_mistral': 686, 'n_tokens_neox': 628, 'n_words': 122}