From f750c4832e7db8743b59158509ac5e5103e12eb7 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 3 Nov 2009 09:28:26 +0000 Subject: [PATCH] Fix: bad function --- htdocs/lib/CMailFile.class.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/htdocs/lib/CMailFile.class.php b/htdocs/lib/CMailFile.class.php index e27d5763b7a..a761c6d4267 100644 --- a/htdocs/lib/CMailFile.class.php +++ b/htdocs/lib/CMailFile.class.php @@ -593,11 +593,8 @@ class CMailFile if (is_readable($newsourcefile)) { - //$fd = fopen($newsourcefile, "rb"); - //$contents = fread($fd, filesize($newsourcefile)); $contents = file_get_contents($newsourcefile); // Need PHP 4.3 $encoded = chunk_split(base64_encode($contents), 68, $this->eol); - fclose($fd); return $encoded; } else