From: Ondrej S. <on...@us...> - 2002-05-29 12:43:50
|
Update of /cvsroot/squirrelmail/squirrelmail/functions In directory usw-pr-cvs1:/tmp/cvs-serv17521 Modified Files: smtp.php Log Message: seems that somebody was checking output file descriptor and not input file descriptor for EOF without EOLN. Index: smtp.php =================================================================== RCS file: /cvsroot/squirrelmail/squirrelmail/functions/smtp.php,v retrieving revision 1.161 retrieving revision 1.162 diff -u -w -r1.161 -r1.162 --- smtp.php 20 May 2002 11:36:52 -0000 1.161 +++ smtp.php 29 May 2002 12:43:45 -0000 1.162 @@ -162,7 +162,7 @@ * Check if the last line has newline ($rn) in it * and append if it doesn't. */ - if ($fp && feof($fp) && !strstr($tmp, "$rn")){ + if ($file && feof($file) && !strstr($tmp, "$rn")){ $tmp .= $rn; } if ($fp) { |