cvs: pear /Net_SMTP SMTP.php
| From: | Jon Parise | Date: | Mon, 17 Feb 2003 19:58:32 +0000 |
| Subject: | cvs: pear /Net_SMTP SMTP.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-8917@lists.php.net to get a copy of this message | ||
jon Mon Feb 17 14:58:32 2003 EDT
Modified files:
/pear/Net_SMTP SMTP.php
Log:
Correctly handle the where the server's ESMTP response includes a SIZE
keyword with no specific value.
Index: pear/Net_SMTP/SMTP.php
diff -u pear/Net_SMTP/SMTP.php:1.31 pear/Net_SMTP/SMTP.php:1.32
--- pear/Net_SMTP/SMTP.php:1.31 Thu Jan 30 09:59:50 2003
+++ pear/Net_SMTP/SMTP.php Mon Feb 17 14:58:32 2003
@@ -657,7 +657,7 @@
* says that if "the parameter is omitted no information is conveyed
* about the server's fixed maximum message size".
*/
- if (!empty($this->_esmtp['SIZE'])) {
+ if (isset($this->_esmtp['SIZE']) &&
($this->_esmtp['SIZE'] > 0)) {
if (strlen($data) >= $this->_esmtp['SIZE']) {
$this->disconnect();
return new PEAR_Error('Message size excedes the server limit');