Commit 93971ee7 authored by jcnventura's avatar jcnventura

Fix #835470 by adrien.gibrat: Transliterate generated PDF filenames if...

Fix #835470 by adrien.gibrat: Transliterate generated PDF filenames if transliteration module is enabled
parent 26081159
...@@ -83,6 +83,10 @@ function print_pdf_controller() { ...@@ -83,6 +83,10 @@ function print_pdf_controller() {
else { else {
$pdf_filename = str_replace('/', '_', $path) . '.pdf'; $pdf_filename = str_replace('/', '_', $path) . '.pdf';
} }
if (function_exists('transliteration_clean_filename')) {
$pdf_filename = transliteration_clean_filename($pdf_filename, language_default('language'));
}
if (basename($print_pdf_pdf_tool) == 'dompdf_config.inc.php') { if (basename($print_pdf_pdf_tool) == 'dompdf_config.inc.php') {
_print_pdf_dompdf($print, $html, $pdf_filename); _print_pdf_dompdf($print, $html, $pdf_filename);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment