Skip to content

Commit

Permalink
bugfix: avoid XSS in customer group list with description field (LMS #…
Browse files Browse the repository at this point in the history
  • Loading branch information
chilek committed Apr 8, 2021
1 parent 5ae67b0 commit 50ba542
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/default/balance/balancenew.html
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ <H1>{$layout.pagetitle}</H1>
</td>
<td>
<textarea name="addbalance[comment]" rows="5" cols="50" {tip text="Enter comment"}
form="addbalance">{$comment|replace:"\n":"<BR>"}</textarea>
form="addbalance">{$comment|escape|replace:"\n":"<BR>"}</textarea>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -296,7 +296,7 @@ <H1>{$layout.pagetitle}</H1>
<table width="100%" cellpadding="5">
<tr>
<td class="fall superlight">
{$last.comment|replace:"\n":"<BR>"}
{$last.comment|escape|replace:"\n":"<BR>"}
</td>
</tr>
</table>
Expand Down

0 comments on commit 50ba542

Please sign in to comment.