浏览代码

minor fix

stekkel 23 年之前
父节点
当前提交
f3f73f57ed
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      functions/imap_messages.php

+ 1 - 2
functions/imap_messages.php

@@ -618,9 +618,8 @@ function sqimap_get_header ($imap_stream, $read) {
                 if (strpos($line, ";", $pos) > 0) {
                     $type = substr($type, $pos, strpos($line, ";", $pos)-$pos);
                 } else {
-                    $type = substr($charset, $pos);
+                    $type = substr($type, $pos);
                 }
-		$type = str_replace("\"",'',$type);
 		$hdr->type = $type;
 	    }
         }