mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-14 08:54:21 +01:00
No special chars in filename
This commit is contained in:
@@ -140,7 +140,7 @@ class pdf_einstein extends ModelePDFCommandes
|
||||
}
|
||||
else
|
||||
{
|
||||
$comref = sanitize_string($com->ref);
|
||||
$comref = sanitizeFileName($com->ref);
|
||||
$dir = $conf->commande->dir_output . "/" . $comref;
|
||||
$file = $dir . "/" . $comref . ".pdf";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user