"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:
phpnut 2008-03-26 03:49:30 +00:00
parent d8d7b899a1
commit fa787aa82b

View file

@ -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;
}
/**