Sfoglia il codice sorgente

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 anni fa
parent
commit
e5cd713f54
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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) {
     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);
 	$tmp = fgets($stream, 1024);
 	$this->errorCheck($tmp, $stream);
 	$this->errorCheck($tmp, $stream);
 	if ($this->dlv_ret_nr != 250) {
 	if ($this->dlv_ret_nr != 250) {