summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-04-29 18:36:40 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-04-29 18:36:40 +0000
commit22b8238d5f8670db3181ea7706b339c5a8386734 (patch)
treef9bd284afbe36f711e8c86901be49436cc33b7d9 /roundcubemail/program/steps
parentd196536731806de8edac56ff5695eb5cea5f671f (diff)
- Fix a bug where selecting too many contacts would produce too large URI request (#1487892)
git-svn-id: https://svn.roundcube.net/trunk@4711 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
-rw-r--r--roundcubemail/program/steps/addressbook/mailto.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/program/steps/addressbook/mailto.inc b/roundcubemail/program/steps/addressbook/mailto.inc
index 702e1a61b..e4f2801f7 100644
--- a/roundcubemail/program/steps/addressbook/mailto.inc
+++ b/roundcubemail/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())) {