Ignore:
Timestamp:
Apr 29, 2011 2:36:40 PM (2 years ago)
Author:
alec
Message:
  • Fix a bug where selecting too many contacts would produce too large URI request (#1487892)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/steps/addressbook/mailto.inc

    r4424 r4711  
    2020*/ 
    2121 
    22 $cid = get_input_value('_cid', RCUBE_INPUT_GET); 
     22$cid = get_input_value('_cid', RCUBE_INPUT_POST); 
    2323$recipients = null; 
    2424$mailto = array(); 
     
    2727{ 
    2828  $CONTACTS->set_page(1); 
    29   $CONTACTS->set_pagesize(100); 
     29  $CONTACTS->set_pagesize(substr_count($cid, ',')+2); // +2 to skip counting query 
    3030  $recipients = $CONTACTS->search($CONTACTS->primary_key, $cid); 
    3131 
Note: See TracChangeset for help on using the changeset viewer.