summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-04-29 18:36:40 +0000
committeralecpl <alec@alec.pl>2011-04-29 18:36:40 +0000
commitcf58ce8512f389f9b9c1bad3fe6dfcb293163f15 (patch)
treea82c86d2ff91e08ac69afba898620d3d0f9f0b34 /program/steps
parentc08b18c4b92cc7c253c72709e3aecb639a742d9f (diff)
- Fix a bug where selecting too many contacts would produce too large URI request (#1487892)
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/addressbook/mailto.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/steps/addressbook/mailto.inc b/program/steps/addressbook/mailto.inc
index 702e1a61b..e4f2801f7 100644
--- a/program/steps/addressbook/mailto.inc
+++ b/program/steps/addressbook/mailto.inc
@@ -19,14 +19,14 @@
*/
-$cid = get_input_value('_cid', RCUBE_INPUT_GET);
+$cid = get_input_value('_cid', RCUBE_INPUT_POST);
$recipients = null;
$mailto = array();
if ($cid && preg_match('/^[a-z0-9\+\/=_-]+(,[a-z0-9\+\/=_-]+)*$/i', $cid) && $CONTACTS->ready)
{
$CONTACTS->set_page(1);
- $CONTACTS->set_pagesize(100);
+ $CONTACTS->set_pagesize(substr_count($cid, ',')+2); // +2 to skip counting query
$recipients = $CONTACTS->search($CONTACTS->primary_key, $cid);
while (is_object($recipients) && ($rec = $recipients->iterate())) {