From fe483567b3ba1e9ca334a579b39877556fa101c0 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 1 Dec 2011 23:37:41 +0100 Subject: [PATCH] Fix: Use filesystem encoding --- htdocs/lib/CMailFile.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/lib/CMailFile.class.php b/htdocs/lib/CMailFile.class.php index f33acee1913..063f1fb226e 100644 --- a/htdocs/lib/CMailFile.class.php +++ b/htdocs/lib/CMailFile.class.php @@ -471,7 +471,7 @@ class CMailFile */ function _encode_file($sourcefile) { - $newsourcefile=utf8_check($sourcefile)?utf8_decode($sourcefile):$sourcefile; // is_readable and file_get_contents need ISO filename + $newsourcefile=dol_osencode($sourcefile); if (is_readable($newsourcefile)) {