Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0

This commit is contained in:
Laurent Destailleur 2024-11-13 22:28:45 +01:00
commit 427e1ec26d

View File

@ -928,7 +928,7 @@ IMG;
if (!empty($conf->global->MAIN_DISABLE_PDF_AUTOUPDATE)) {
$name=preg_replace('/\.od(x|t)/i', '', $name);
header('Content-type: application/pdf');
header('Content-Disposition: attachment; filename="'.$name.'.pdf"');
header('Content-Disposition: attachment; filename="'.basename($name).'.pdf"');
readfile($name.".pdf");
}
}