mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-06 00:53:00 +01:00
FIX Upload of files on public ticket interface
This commit is contained in:
@@ -1227,8 +1227,8 @@ class CMailFile
|
||||
$encoded = chunk_split(base64_encode($contents), 76, $this->eol); // 76 max is defined into http://tools.ietf.org/html/rfc2047
|
||||
return $encoded;
|
||||
} else {
|
||||
$this->error = "Error: Can't read file '".$sourcefile."' into _encode_file";
|
||||
dol_syslog("CMailFile::encode_file: ".$this->error, LOG_ERR);
|
||||
$this->error = "Error in _encode_file() method: Can't read file '".$sourcefile."'";
|
||||
dol_syslog("CMailFile::_encode_file: ".$this->error, LOG_ERR);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user