Changeset ef4998c in github


Ignore:
Timestamp:
Sep 22, 2011 4:48:05 AM (20 months ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.7, release-0.8
Children:
487173e
Parents:
bba2529
Message:

Fix compose command from other tasks than mail and address book; skip common request parameters

Location:
program
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • program/include/main.inc

    r5f71297 ref4998c  
    706706 * @return array Hash array with all request parameters 
    707707 */ 
    708 function request2param($mode = RCUBE_INPUT_GPC) 
     708function request2param($mode = RCUBE_INPUT_GPC, $ignore = 'task|action') 
    709709{ 
    710710  $out = array(); 
     
    712712  foreach ($src as $key => $value) { 
    713713    $fname = $key[0] == '_' ? substr($key, 1) : $key; 
    714     $out[$fname] = get_input_value($key, $mode); 
     714    if ($ignore && !preg_match("/($ignore)/", $fname)) 
     715      $out[$fname] = get_input_value($key, $mode); 
    715716  } 
    716717   
  • program/js/app.js

    rbba2529 ref4998c  
    848848          break; 
    849849        } 
     850        else if (props) 
     851          url += '&_to='+urlencode(props); 
    850852 
    851853        this.redirect(url); 
Note: See TracChangeset for help on using the changeset viewer.