Skip to content

Commit

Permalink
Added javacript escapes to potential problematic places
Browse files Browse the repository at this point in the history
  • Loading branch information
effgarces committed Feb 18, 2021
1 parent b203cb9 commit 80b8963
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tpl/Reservation/pdf.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ pdfDocument.autoTable({
styles: { lineWidth: 0.02},
theme: 'plain',
body: [
[{ content: '{translate key=Attachments} ({$Attachments|count})', styles: { fontStyle: 'bold'}},
[{ content: '{translate key=Attachments|escape:'javascript'} ({$Attachments|count})', styles: { fontStyle: 'bold'}},
],
{foreach from=$Attachments item=attachment}
[{ content: '{$attachment->FileName()|escape:'javascript'}'},
Expand All @@ -278,7 +278,7 @@ pdfDocument.autoTable({
columnStyles: { 1: { cellWidth: 10}},
theme: 'plain',
body: [
[{ content: '{translate key=IAccept} {translate key=TheTermsOfService}', styles: { fontStyle: 'bold'}},
[{ content: '{translate key=IAccept|escape:'javascript'} {translate key=TheTermsOfService}', styles: { fontStyle: 'bold'}},
{ content: 'X', styles: { fontStyle: 'bold', halign: 'center'}},
],
]
Expand Down

0 comments on commit 80b8963

Please sign in to comment.