mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
"Closes #4304, EmailComponent::!__getSmtpResponse not handling multiline messages"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6601 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
d8d7b899a1
commit
fa787aa82b
1 changed files with 9 additions and 1 deletions
|
@ -731,7 +731,15 @@ class EmailComponent extends Object{
|
|||
* @access private
|
||||
*/
|
||||
function __getSmtpResponse() {
|
||||
$response = @fgets($this->__smtpConnection, 512);
|
||||
$response = "";
|
||||
|
||||
while($str = @fgets($this->__smtpConnection, 512)) {
|
||||
$response .= $str;
|
||||
|
||||
if(substr($str, 3, 1) == " ") {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return $response;
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue