Fix: Use filesystem encoding
This commit is contained in:
parent
9279964d75
commit
fe483567b3
@ -471,7 +471,7 @@ class CMailFile
|
|||||||
*/
|
*/
|
||||||
function _encode_file($sourcefile)
|
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))
|
if (is_readable($newsourcefile))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user