thomascube
2011-09-22 ef4998c11084b2c99f8af9976f9860d5f7709a0f
program/include/main.inc
@@ -705,13 +705,14 @@
 * @param  int   Source to get value from (GPC)
 * @return array Hash array with all request parameters
 */
function request2param($mode = RCUBE_INPUT_GPC)
function request2param($mode = RCUBE_INPUT_GPC, $ignore = 'task|action')
{
  $out = array();
  $src = $mode == RCUBE_INPUT_GET ? $_GET : ($mode == RCUBE_INPUT_POST ? $_POST : $_REQUEST);
  foreach ($src as $key => $value) {
    $fname = $key[0] == '_' ? substr($key, 1) : $key;
    $out[$fname] = get_input_value($key, $mode);
    if ($ignore && !preg_match("/($ignore)/", $fname))
      $out[$fname] = get_input_value($key, $mode);
  }
  
  return $out;
@@ -2384,5 +2385,5 @@
    $RCMAIL->output->set_env('autocomplete_max', (int)$RCMAIL->config->get('autocomplete_max', 15));
    $RCMAIL->output->set_env('autocomplete_min_length', $RCMAIL->config->get('autocomplete_min_length'));
    $RCMAIL->output->add_label('autocompletechars');
    $RCMAIL->output->add_label('autocompletechars', 'autocompletemore');
}