From 886a6f4d130a152a255cb8f14643eabc108b3ba0 Mon Sep 17 00:00:00 2001 From: stekkel Date: Fri, 5 Jul 2002 13:56:21 +0000 Subject: [PATCH] ahum.. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3047 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/smtp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.25.1