mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 17:48:25 +01:00
Fix: Supprime erreurs du a open_basedir
This commit is contained in:
@@ -253,13 +253,15 @@ class CMailFile
|
|||||||
* Utilisation pour le debuggage
|
* Utilisation pour le debuggage
|
||||||
*/
|
*/
|
||||||
function send_to_file()
|
function send_to_file()
|
||||||
|
{
|
||||||
|
if (@is_writeable("/tmp")) // Avoid fatal error on fopen with open_basedir
|
||||||
{
|
{
|
||||||
$fp = fopen("/tmp/dolibarr_mail","w");
|
$fp = fopen("/tmp/dolibarr_mail","w");
|
||||||
fputs($fp, $this->headers);
|
fputs($fp, $this->headers);
|
||||||
fputs($fp, $this->message);
|
fputs($fp, $this->message);
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\brief Creation des headers smtp
|
\brief Creation des headers smtp
|
||||||
|
|||||||
Reference in New Issue
Block a user