Explorar o código

Fixed error in MIME structure parsing when response from IMAP server was more than one line.

pallo %!s(int64=25) %!d(string=hai) anos
pai
achega
502957a773
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      functions/mime.php

+ 1 - 1
functions/mime.php

@@ -61,7 +61,7 @@
       $read = fgets ($imap_stream, 10000);
       $read = fgets ($imap_stream, 10000);
       $response = substr($read, 0, 4);
       $response = substr($read, 0, 4);
       while ($response != "a001") {
       while ($response != "a001") {
-         $bodystructure = $read;
+         $bodystructure .= $read;
          $read = fgets ($imap_stream, 10000);
          $read = fgets ($imap_stream, 10000);
          $response = substr($read, 0, 4);
          $response = substr($read, 0, 4);
       }
       }