Skip to content

Commit e4818a8

Browse files
committed
Wiki: fix pdf export with special caracters in title -refs BT#21163
1 parent b63d427 commit e4818a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/wiki/wiki.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2511,7 +2511,7 @@ public function export_to_pdf($id, $course_code)
25112511
<!-- defines the headers/footers - this must occur before the headers/footers are set -->
25122512
25132513
<!--mpdf
2514-
<pageheader name="odds" content-left="'.$title_pdf.'" header-style-left="color: #880000; font-style: italic;" line="1" />
2514+
<pageheader name="odds" content-left="'.htmlspecialchars($title_pdf,ENT_QUOTES).'" header-style-left="color: #880000; font-style: italic;" line="1" />
25152515
<pagefooter name="odds" content-right="{PAGENO}/{nb}" line="1" />
25162516
25172517
<!-- set the headers/footers - they will occur from here on in the document -->

0 commit comments

Comments
 (0)