Skip to content

Commit

Permalink
Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Nov 13, 2024
2 parents 3cd1ab2 + c845cc3 commit 427e1ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/includes/odtphp/odf.php
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ public function exportAsAttachedPDF($name = "")
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");
}
}
Expand Down

0 comments on commit 427e1ec

Please sign in to comment.