Skip to content

Commit

Permalink
Do not escape error message
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Jul 7, 2022
1 parent a0b38b7 commit ebff48f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions templates/CRM/common/info.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
+--------------------------------------------------------------------+
*}
{* Handles display of passed $infoMessage. *}
{if $infoMessage || $infoTitle}
<div class="messages status {$infoType}"{if $infoOptions} data-options='{$infoOptions}'{/if}>
{if $infoMessage|smarty:nodefaults || $infoTitle|smarty:nodefaults}
<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}</span>
<span class="msg-text">{$infoMessage|smarty:nodefaults}</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 infoMessage=$statItem.text infoOptions=$statItem.options|@json_encode}
{include file="CRM/common/info.tpl" infoTitle=$statItem.title|smarty:nodefaults infoMessage=$statItem.text|smarty:nodefaults infoOptions=$statItem.options|smarty:nodefaults|@json_encode}
{/foreach}
{/if}

0 comments on commit ebff48f

Please sign in to comment.