PDF Export Issue if '&' Used in Title #892

Closed
opened 2026-02-04 22:45:21 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @aljawaid on GitHub (Nov 6, 2018).

Describe the bug

I noticed I get an An unknown error has occurred issue without any mention in the logs. It only causes an issues when I put the & in the title line. e.g. "Categories & Packages"

PDF Export working if title is "Categories and Packages"
PDF Export NOT working if title is "Categories & Packages"

Your Configuration (please complete the following information):

  • Exact BookStack Version (Found in settings): 0.24.0
  • PHP Version: 7.0.32
  • Hosting Method (Nginx/Apache/Docker): Apache

Additional context

Not sure if it is related to #804 or even #1097

Originally created by @aljawaid on GitHub (Nov 6, 2018). ### **Describe the bug** I noticed I get an `An unknown error has occurred` issue without any mention in the logs. It only causes an issues when I put the `&` in the title line. e.g. "Categories & Packages" **PDF Export working** if title is "Categories and Packages" **PDF Export NOT working** if title is "Categories & Packages" ### **Your Configuration (please complete the following information):** - Exact BookStack Version (Found in settings): 0.24.0 - PHP Version: 7.0.32 - Hosting Method (Nginx/Apache/Docker): Apache ### **Additional context** Not sure if it is related to #804 or even #1097
OVERLORD added the 🐛 Bug🔍 Pending Validation labels 2026-02-04 22:45:21 +03:00
Author
Owner

@aljawaid commented on GitHub (Nov 22, 2018):

#804 #1097

@aljawaid commented on GitHub (Nov 22, 2018): #804 #1097
Author
Owner

@james-geiger commented on GitHub (Nov 19, 2019):

@aljawaid @ssddanbrown

I've tested this in v.28-dev with DOMPDF and WKHTMLPDF and both generate readable pdfs with ampersands in the page title.

PHP 7.3.x
Laravel Valet (nginx)

If there are no further details, I recommend closing the issue.

@james-geiger commented on GitHub (Nov 19, 2019): @aljawaid @ssddanbrown I've tested this in v.28-dev with DOMPDF and WKHTMLPDF and both generate readable pdfs with ampersands in the page title. PHP 7.3.x Laravel Valet (nginx) If there are no further details, I recommend closing the issue.
Author
Owner

@ssddanbrown commented on GitHub (Dec 17, 2020):

Thanks for confirming @james-geiger.

Since there's been no follow-up I'll close this off.

@ssddanbrown commented on GitHub (Dec 17, 2020): Thanks for confirming @james-geiger. Since there's been no follow-up I'll close this off.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#892