From: stekkel Date: Fri, 5 Jul 2002 13:56:21 +0000 (+0000) Subject: ahum.. X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=886a6f4d130a152a255cb8f14643eabc108b3ba0 ahum.. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3047 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/smtp.php b/functions/smtp.php index 8caa33be..1ae2cbfa 100644 --- a/functions/smtp.php +++ b/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) {