Changeset 2170 in subversion
- Timestamp:
- Dec 18, 2008 5:15:39 AM (4 years ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 2 edited
-
CHANGELOG (modified) (1 diff)
-
program/lib/Net/SMTP.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/CHANGELOG
r2160 r2170 1 1 CHANGELOG RoundCube Webmail 2 2 --------------------------- 3 4 2008/12/18 (alec) 5 ---------- 6 - Fix STARTTLS before AUTH in SMTP connection (#1484883) 3 7 4 8 2008/12/16 (thomasb) -
trunk/roundcubemail/program/lib/Net/SMTP.php
r969 r2170 376 376 return true; 377 377 } 378 378 console($this->_arguments); 379 379 foreach ($this->_arguments as $argument) { 380 380 $verb = strtok($argument, ' '); … … 425 425 function auth($uid, $pwd , $method = '') 426 426 { 427 if (empty($this->_esmtp['AUTH'])) { 428 if (version_compare(PHP_VERSION, '5.1.0', '>=')) { 429 if (!isset($this->_esmtp['STARTTLS'])) { 430 return PEAR::raiseError('SMTP server does not support authentication'); 431 } 427 if (version_compare(PHP_VERSION, '5.1.0', '>=') && isset($this->_esmtp['STARTTLS'])) { 428 432 429 if (PEAR::isError($result = $this->_put('STARTTLS'))) { 433 430 return $result; … … 445 442 * SMTP server. */ 446 443 $this->_negotiate(); 447 if (empty($this->_esmtp['AUTH'])) { 448 return PEAR::raiseError('SMTP server does not support authentication'); 449 } 450 } else { 451 return PEAR::raiseError('SMTP server does not support authentication'); 452 } 444 } 445 446 if (empty($this->_esmtp['AUTH'])) { 447 return PEAR::raiseError('SMTP server does not support authentication'); 453 448 } 454 449
Note: See TracChangeset
for help on using the changeset viewer.
