Skip to content

Commit dcf53fa

Browse files
committed
Merge pull request civicrm#8291 from totten/4.6-17952
(Backport) CRM-17952 - Escape HTML in body_text field on "Headers, Footers, and Automated Messages"
2 parents 234ac7a + fe55f63 commit dcf53fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/CRM/Mailing/Page/Component.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<td class="crm-editable" data-field="name">{$row.name}</td>
5050
<td>{$row.component_type}</td>
5151
<td>{$row.subject}</td>
52-
<td>{$row.body_text}</td>
52+
<td>{$row.body_text|escape}</td>
5353
<td>{$row.body_html|escape}</td>
5454
<td>{if $row.is_default eq 1}<img src="{$config->resourceBase}i/check.gif" alt="{ts}Default{/ts}" />{/if}&nbsp;</td>
5555
<td id="row_{$row.id}_status">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>

0 commit comments

Comments
 (0)