Ver Fonte

Fixed a bug that would only appear with an obscenely long line in the email.

Tyler Akins há 24 anos atrás
pai
commit
edbb3f92c5
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      functions/imap_general.php

+ 3 - 0
functions/imap_general.php

@@ -74,6 +74,9 @@
                } else {
                } else {
                   $data[] = $read;
                   $data[] = $read;
                   $read = fgets($imap_stream, 9096);
                   $read = fgets($imap_stream, 9096);
+		  while (strpos($read, "\n") === false) {
+		     $read .= fgets($imap_stream, 9096);
+		  }
                }
                }
                $total_size += strlen($read);
                $total_size += strlen($read);
             } else {
             } else {