Changeset cf58ce8 in github


Ignore:
Timestamp:
Apr 29, 2011 2:36:40 PM (2 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
1997a94
Parents:
c08b18c4
Message:
  • Fix a bug where selecting too many contacts would produce too large URI request (#1487892)
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    rc08b18c4 rcf58ce8  
    22=========================== 
    33 
     4- Fix a bug where selecting too many contacts would produce too large URI request (#1487892) 
    45- Fix relative URLs handling according to a <base> in HTML (#1487889) 
    56- Fix handling of top-level domains with more than 5 chars or unicode chars (#1487883) 
  • program/js/app.js

    re505519 rcf58ce8  
    809809        var url = this.env.comm_path+'&_action=compose'; 
    810810 
    811         if (this.task=='mail') { 
     811        if (this.task == 'mail') { 
    812812          url += '&_mbox='+urlencode(this.env.mailbox); 
    813813 
    814           if (this.env.mailbox==this.env.drafts_mailbox) { 
     814          if (this.env.mailbox == this.env.drafts_mailbox) { 
    815815            var uid; 
    816816            if (uid = this.get_single_uid()) 
     
    821821        } 
    822822        // modify url if we're in addressbook 
    823         else if (this.task=='addressbook') { 
     823        else if (this.task == 'addressbook') { 
    824824          // switch to mail compose step directly 
    825825          if (props && props.indexOf('@') > 0) { 
     
    830830 
    831831          // use contact_id passed as command parameter 
    832           var a_cids = []; 
     832          var n, len, a_cids = []; 
    833833          if (props) 
    834834            a_cids.push(props); 
     
    836836          else if (this.contact_list) { 
    837837            var selection = this.contact_list.get_selection(); 
    838             for (var n=0; n<selection.length; n++) 
     838            for (n=0, len=selection.length; n<len; n++) 
    839839              a_cids.push(selection[n]); 
    840840          } 
    841841 
    842842          if (a_cids.length) 
    843             this.http_request('mailto', '_cid='+urlencode(a_cids.join(','))+'&_source='+urlencode(this.env.source), true); 
     843            this.http_post('mailto', {_cid: a_cids.join(','), _source: this.env.source}, true); 
    844844 
    845845          break; 
    846846        } 
    847  
    848         // don't know if this is necessary... 
    849         url = url.replace(/&_framed=1/, ''); 
    850847 
    851848        this.redirect(url); 
  • program/steps/addressbook/mailto.inc

    r0501b63 rcf58ce8  
    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.