Jelajahi Sumber

fixed bug with "boundary" maybe being uppercase (pine)

Luke Ehresman 25 tahun lalu
induk
melakukan
3fe0106a7d
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      functions/imap_messages.php

+ 1 - 1
functions/imap_messages.php

@@ -161,7 +161,7 @@
 
             /** Detect the boundary of a multipart message **/
             if (strpos(strtolower(trim($line)), "boundary=")) {
-               $pos = strpos($line, "boundary=") + 9;
+               $pos = strpos(strtolower($line), "boundary=") + 9;
                $bound = trim($line);
                if (strpos($line, " ", $pos) > 0) {
                   $bound = substr($bound, $pos, strpos($line, " ", $pos));