Jelajahi Sumber

fix boundary_end in case of recursion
Thnx Aaron van Meerten for spotting this.

stekkel 22 tahun lalu
induk
melakukan
b39f674f1d
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 3 3
      class/deliver/Deliver.class.php

+ 3 - 3
class/deliver/Deliver.class.php

@@ -62,7 +62,7 @@ class Deliver {
             if ($i == $entCount-1) $last = true;
             if ($i == $entCount-1) $last = true;
         }
         }
         if ($boundary && $last) {
         if ($boundary && $last) {
-            $s = "--".$boundary."--\r\n\r\n";
+            $s = "--".$boundary_new."--\r\n\r\n";
             $length_raw += strlen($s);
             $length_raw += strlen($s);
             if ($stream) {
             if ($stream) {
                 $this->preWriteToStream($s);
                 $this->preWriteToStream($s);
@@ -307,8 +307,8 @@ class Deliver {
         }
         }
         /* Identify SquirrelMail */    
         /* Identify SquirrelMail */    
         $header[] = 'User-Agent: SquirrelMail/' . $version . $rn;
         $header[] = 'User-Agent: SquirrelMail/' . $version . $rn;
-	// Spamassassin complains about no X-Mailer in combination with X-Priority
-	$header[] = 'X-Mailer: SquirrelMail/' . $version . $rn; 
+        // Spamassassin complains about no X-Mailer in combination with X-Priority
+        $header[] = 'X-Mailer: SquirrelMail/' . $version . $rn; 
         /* Do the MIME-stuff */
         /* Do the MIME-stuff */
         $header[] = 'MIME-Version: 1.0' . $rn;
         $header[] = 'MIME-Version: 1.0' . $rn;
         $contenttype = 'Content-Type: '. $rfc822_header->content_type->type0 .'/'.
         $contenttype = 'Content-Type: '. $rfc822_header->content_type->type0 .'/'.