From ab1512440cec2ba873b9b2b942fd434ce08dae94 Mon Sep 17 00:00:00 2001 From: alec Date: Mon, 11 Oct 2010 06:57:14 +0000 Subject: - Fix Net_SMTP from http://pear.php.net/bugs/bug.php?id=17942 git-svn-id: https://svn.roundcube.net/trunk@4073 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/lib/Net/SMTP.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roundcubemail/program/lib/Net/SMTP.php b/roundcubemail/program/lib/Net/SMTP.php index 8b9d96749..31307f03b 100644 --- a/roundcubemail/program/lib/Net/SMTP.php +++ b/roundcubemail/program/lib/Net/SMTP.php @@ -974,6 +974,8 @@ class Net_SMTP } } } else { + if (!isset($size)) + $size = strlen($data); /* * Break up the data by sending one chunk (up to 512k) at a time. * This approach reduces our peak memory usage. -- cgit v1.2.3