<commit_before><?php

/**
 * opWidgetFormInputHiddenNextUri represents a hidden HTML input tag for next_uri
 *
 * @package    OpenPNE
 * @subpackage widget
 * @author     <NAME> <<EMAIL>>
 */
class opWidgetFormInputHiddenNextUri extends sfWidgetFormInputHidden
{
  protected function configure($options = array(), $attributes = array())
  {
    parent::configure($options, $attributes);

    $routing = sfContext::getInstance()->getRouting();

    $this->setAttribute('value', $routing->getCurrentInternalUri());
  }
}
<commit_msg>fixed opWidgetFormInputHiddenNextUri doesn't allow the URL parameters<commit_after><?php

/**
 * opWidgetFormInputHiddenNextUri represents a hidden HTML input tag for next_uri
 *
 * @package    OpenPNE
 * @subpackage widget
 * @author     <NAME> <<EMAIL>>
 */
class opWidgetFormInputHiddenNextUri extends sfWidgetFormInputHidden
{
  protected function configure($options = array(), $attributes = array())
  {
    parent::configure($options, $attributes);

    $routing = sfContext::getInstance()->getRouting();
    $request = sfContext::getInstance()->getRequest();

    // FIXME
    $params = http_build_query($request->getGetParameters());
    $value = $routing->getCurrentInternalUri().'?'.str_replace('openid_', 'openid.', $params);

    $this->setAttribute('value', $value);
  }
}

{'fraction_non_alphanumeric': 0.1419893697798026, 'fraction_numerical': 0.0, 'mean_word_length': 5.101851851851852, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 17, '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': '5758512', 'n_tokens_mistral': 364, 'n_tokens_neox': 370, 'n_words': 81}