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

This commit is contained in:
Laurent Destailleur 2024-11-13 22:29:08 +01:00
commit aa40cbce98

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");
}
}