cvs: php4 /pear/Net SMTP.php
| From: | Tomas V.V.Cox | Date: | Fri, 07 Jun 2002 06:06:04 +0000 |
| Subject: | cvs: php4 /pear/Net SMTP.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-4461@lists.php.net to get a copy of this message | ||
cox Fri Jun 7 02:06:04 2002 EDT
Modified files:
/php4/pear/Net SMTP.php
Log:
fix EOL handling in AUTH (patch from Scott Carr <scarr@progbits.com>)
Index: php4/pear/Net/SMTP.php
diff -u php4/pear/Net/SMTP.php:1.8 php4/pear/Net/SMTP.php:1.9
--- php4/pear/Net/SMTP.php:1.8 Fri Jun 7 02:04:11 2002
+++ php4/pear/Net/SMTP.php Fri Jun 7 02:06:04 2002
@@ -135,10 +135,10 @@
if (PEAR::isError($this->socket->write("AUTH LOGIN\r\n"))) { return new
PEAR_Error('write to socket failed'); }
if (!$this->validateResponse('334')) { return new PEAR_Error('AUTH LOGIN
not recognized'); }
- if (PEAR::isError($this->socket->write(base64_encode($uid) . "\n"))) {
return new PEAR_Error('write to socket failed'); }
+ if (PEAR::isError($this->socket->write(base64_encode($uid) . "\r\n"))) {
return new PEAR_Error('write to socket failed'); }
if (!$this->validateResponse('334')) { return new PEAR_Error('354 not
received'); }
- if (PEAR::isError($this->socket->write(base64_encode($pwd) . "\n"))) {
return new PEAR_Error('write to socket failed'); }
+ if (PEAR::isError($this->socket->write(base64_encode($pwd) . "\r\n"))) {
return new PEAR_Error('write to socket failed'); }
if (!$this->validateResponse('235')) { return new PEAR_Error('235 not
received'); }
return true;