Add precautionary purify
[civicrm-core.git] / templates / CRM / common / status.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
8 +--------------------------------------------------------------------+
9 *}
10 {* Check for Status message for the page (stored in session->getStatus). Status is cleared on retrieval. *}
11
12 {if $session->getStatus(false)}
13 {assign var="status" value=$session->getStatus(true)}
14 {foreach name=statLoop item=statItem from=$status}
15 {if !empty($urlIsPublic)}
16 {assign var="infoType" value="no-popup `$statItem.type`"}
17 {else}
18 {assign var="infoType" value=$statItem.type}
19 {/if}
20 {include file="CRM/common/info.tpl" infoTitle=$statItem.title infoMessage=$statItem.text|smarty:nodefaults|purify infoOptions=$statItem.options|smarty:nodefaults|@json_encode}
21 {/foreach}
22 {/if}