From 16ec40dce51f19d9c2a4ea050d72668226074e97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Chili=C5=84ski?= Date: Thu, 29 Apr 2021 12:18:39 +0200 Subject: [PATCH] bugfix: avoid XSS in postion name presentation of invoice forms (LMS #1910) --- templates/default/invoice/invoicecontents.html | 2 +- templates/default/invoice/invoicenew.html | 2 +- templates/default/invoice/invoicenotemodify.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/default/invoice/invoicecontents.html b/templates/default/invoice/invoicecontents.html index 2de9e7d10d..8da7bc97ef 100644 --- a/templates/default/invoice/invoicecontents.html +++ b/templates/default/invoice/invoicecontents.html @@ -107,7 +107,7 @@ - {$item.name} + {$item.name|escape} {if isset($item.name_custom_contents)} {$item.name_custom_contents} {/if} diff --git a/templates/default/invoice/invoicenew.html b/templates/default/invoice/invoicenew.html index 9cd155bc92..60a9c0a3c3 100644 --- a/templates/default/invoice/invoicenew.html +++ b/templates/default/invoice/invoicenew.html @@ -238,7 +238,7 @@

{$layout.pagetitle}

{section name=covenantlist loop=$covenantlist} {$covenantlist[covenantlist].time|date_format:"%Y/%m/%d"} - {$covenantlist[covenantlist].comment} + {$covenantlist[covenantlist].comment|escape} {tax_category_selection elementname="l_taxcategory[{$covenantlist[covenantlist].cashid}]" tip="Select tax category"} diff --git a/templates/default/invoice/invoicenotemodify.html b/templates/default/invoice/invoicenotemodify.html index a38f6693f5..781c91da59 100644 --- a/templates/default/invoice/invoicenotemodify.html +++ b/templates/default/invoice/invoicenotemodify.html @@ -316,7 +316,7 @@

{$layout.pagetitle}

{if $item.deleted} - {$item.name} + {$item.name|escape} {else} {/if}