Skip to content

Commit

Permalink
Add precautionary purify
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Jul 7, 2022
1 parent ebff48f commit 47338cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/CRM/common/info.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
<div class="messages status {$infoType}"{if $infoOptions} data-options='{$infoOptions|smarty:nodefaults}'{/if}>
{icon icon="fa-info-circle"}{/icon}
<span class="msg-title">{$infoTitle}</span>
<span class="msg-text">{$infoMessage|smarty:nodefaults}</span>
<span class="msg-text">{$infoMessage|smarty:nodefaults|purify}</span>
</div>
{/if}
2 changes: 1 addition & 1 deletion templates/CRM/common/status.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
{else}
{assign var="infoType" value=$statItem.type}
{/if}
{include file="CRM/common/info.tpl" infoTitle=$statItem.title|smarty:nodefaults infoMessage=$statItem.text|smarty:nodefaults infoOptions=$statItem.options|smarty:nodefaults|@json_encode}
{include file="CRM/common/info.tpl" infoTitle=$statItem.title infoMessage=$statItem.text|smarty:nodefaults|purify infoOptions=$statItem.options|smarty:nodefaults|@json_encode}
{/foreach}
{/if}

0 comments on commit 47338cb

Please sign in to comment.