瀏覽代碼

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

Luke Ehresman 25 年之前
父節點
當前提交
3fe0106a7d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      functions/imap_messages.php

+ 1 - 1
functions/imap_messages.php

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