diff --git a/libraries/schema/Pdf_Relation_Schema.class.php b/libraries/schema/Pdf_Relation_Schema.class.php index ad0fe7a11..a5aa18271 100644 --- a/libraries/schema/Pdf_Relation_Schema.class.php +++ b/libraries/schema/Pdf_Relation_Schema.class.php @@ -1075,7 +1075,7 @@ class PMA_Pdf_Relation_Schema extends PMA_Export_Relation_Schema if (empty($filename)) { $filename = $pageNumber . '.pdf'; } - $fileName = PMA_sanitize_filename($fileName); + $filename = PMA_sanitize_filename($filename); // instead of $pdf->Output(): $pdfData = $pdf->getPDFData();