Skip to content

Commit

Permalink
Fixed: #30976 (#30979)
Browse files Browse the repository at this point in the history
* Fixed: #30976

* Update odf.php

---------

Co-authored-by: Pratush Raj <pratushraj0@gmail.com>
  • Loading branch information
accellier-dev and pratushraj authored Nov 13, 2024
1 parent 2b26521 commit c845cc3
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 @@ -925,7 +925,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 c845cc3

Please sign in to comment.