Actions
Defect #7794
closedInternal server error on formatting an issue as a PDF in Japanese
Defect #7794:
Internal server error on formatting an issue as a PDF in Japanese
Resolution:
Fixed
Affected version:
Description
IssuesController#show fails with internal server error when
- params[:format] is pdf
- AcceptLanguage: ja
- @issue.description contains an ASCII control character.
This is because the map SJIS_widths does not have a mapping for control characters and it leads concatenation of a String and nil at vendor/plugins/rfpdf/lib/rfpdf/japanese.rb:182.
The attached patch fixes this problem.
Files
Actions