mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-15 22:11:36 +01:00
No special chars in filename
This commit is contained in:
@@ -106,7 +106,7 @@ class InterfaceNotification
|
||||
dolibarr_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id);
|
||||
|
||||
$action_notify = 2;
|
||||
$ref = sanitize_string($object->ref);
|
||||
$ref = sanitizeFileName($object->ref);
|
||||
$filepdf = $conf->facture->dir_output . '/' . $ref . '/' . $ref . '.pdf';
|
||||
$mesg = 'La facture '.$object->ref." a <20>t<EFBFBD> valid<69>e.\n";
|
||||
|
||||
@@ -119,7 +119,7 @@ class InterfaceNotification
|
||||
dolibarr_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id);
|
||||
|
||||
$action_notify = 1;
|
||||
$ref = sanitize_string($object->ref);
|
||||
$ref = sanitizeFileName($object->ref);
|
||||
$filepdf = $conf->facture->dir_output . '/' . $ref . '/' . $ref . '.pdf';
|
||||
$mesg = 'La fiche intervention '.$object->ref." a <20>t<EFBFBD> valid<69>e.\n";
|
||||
|
||||
@@ -132,7 +132,7 @@ class InterfaceNotification
|
||||
dolibarr_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id);
|
||||
|
||||
$action_notify = 3;
|
||||
$ref = sanitize_string($object->ref);
|
||||
$ref = sanitizeFileName($object->ref);
|
||||
$filepdf = $conf->fournisseur->commande->dir_output . '/' . $ref . '/' . $ref . '.pdf';
|
||||
$mesg = 'La commande fournisseur '.$object->ref." a <20>t<EFBFBD> valid<69>e.\n";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user