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

+ 1 - 1
functions/smtp.php

@@ -162,7 +162,7 @@ function attachFiles ($fp, $session, $rn="\r\n") {
                          * Check if the last line has newline ($rn) in it
                          * and append if it doesn't.
                          */
-                        if ($file && feof($fp) && !strstr($tmp, "$rn")){
+                        if ($file && feof($file) && !strstr($tmp, "$rn")){
                             $tmp .= $rn;
                         }
                         if ($fp) {