Skip to content

Commit

Permalink
bugfix: avoid XSS in postion name presentation of invoice forms (LMS #…
Browse files Browse the repository at this point in the history
  • Loading branch information
chilek committed Apr 29, 2021
1 parent f5bbe76 commit 16ec40d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/default/invoice/invoicecontents.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
<INPUT TYPE="text" class="invoice-contents-field-edit" NAME="invoice-contents[{$posuid}][name]" SIZE="40" style="width: 300px; display: none;"
value="{$row.name|escape}" data-old-value="{$item.name|escape}"
{tip text="Enter description"}>
<span class="invoice-contents-field-value">{$item.name}</span>
<span class="invoice-contents-field-value">{$item.name|escape}</span>
{if isset($item.name_custom_contents)}
{$item.name_custom_contents}
{/if}
Expand Down
2 changes: 1 addition & 1 deletion templates/default/invoice/invoicenew.html
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ <H1>{$layout.pagetitle}</H1>
{section name=covenantlist loop=$covenantlist}
<TR class="highlight {cycle}">
<TD class="nobr">{$covenantlist[covenantlist].time|date_format:"%Y/%m/%d"}</TD>
<TD>{$covenantlist[covenantlist].comment}</TD>
<TD>{$covenantlist[covenantlist].comment|escape}</TD>
<td>
{tax_category_selection elementname="l_taxcategory[{$covenantlist[covenantlist].cashid}]"
tip="Select tax category"}
Expand Down
2 changes: 1 addition & 1 deletion templates/default/invoice/invoicenotemodify.html
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ <H1>{$layout.pagetitle}</H1>
</TD>
<TD>
{if $item.deleted}
<INPUT TYPE="hidden" VALUE="{$item.name|escape}" NAME="name[{$itemid}]">{$item.name}
<INPUT TYPE="hidden" VALUE="{$item.name|escape}" NAME="name[{$itemid}]">{$item.name|escape}
{else}
<INPUT TYPE="text" VALUE="{$item.name|escape}" NAME="name[{$itemid}]" SIZE="48">
{/if}
Expand Down

0 comments on commit 16ec40d

Please sign in to comment.