Skip to content

Commit

Permalink
Fix for issue LibreBooking#88
Browse files Browse the repository at this point in the history
Fixes the missing escaping (LibreBooking#88)
  • Loading branch information
effgarces committed Dec 9, 2021
1 parent c0dd983 commit 358c3e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tpl/Reservation/pdf.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ $('.btnPDF').click(function (e) {
],
{foreach from=$AvailableResources item=resource}
{if is_array($AdditionalResourceIds) && in_array($resource->Id, $AdditionalResourceIds)}
[{ content: '{$resource->Name}'},
[{ content: '{$resource->Name|escape:'javascript'}'},
{ content: '{if $resource->GetRequiresApproval()}X{/if}', styles: { fontStyle: 'bold', halign: 'center'}},
{ content: '{if $resource->IsCheckInEnabled()}X{/if}', styles: { fontStyle: 'bold', halign: 'center'}},
{ content: '{if $resource->IsAutoReleased()}{$resource->GetAutoReleaseMinutes()}{else} - {/if}', styles: { halign: 'center'}},
Expand Down

0 comments on commit 358c3e2

Please sign in to comment.