소스 검색

When the data stream wasn't ending with \r\n the finalize stream function
could raise a 502 error. I hope this fixes it.

stekkel 21 년 전
부모
커밋
e5cd713f54
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      class/deliver/Deliver_SMTP.class.php

+ 1 - 1
class/deliver/Deliver_SMTP.class.php

@@ -218,7 +218,7 @@ class Deliver_SMTP extends Deliver {
     }
     
     function finalizeStream($stream) {
-	fputs($stream, ".\r\n"); /* end the DATA part */
+	fputs($stream, "\r\n.\r\n"); /* end the DATA part */
 	$tmp = fgets($stream, 1024);
 	$this->errorCheck($tmp, $stream);
 	if ($this->dlv_ret_nr != 250) {