From 09adb67dbff4bb27fd3bf8baf508573725a7766e Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Thu, 6 Aug 2020 06:31:22 +1000 Subject: [PATCH] security/core#95 Purify Summary and description fields for events on the event info and event cart screens --- templates/CRM/Event/Page/EventInfo.tpl | 4 ++-- templates/CRM/Event/Page/List.tpl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/CRM/Event/Page/EventInfo.tpl b/templates/CRM/Event/Page/EventInfo.tpl index 38a9beaba2..4b858973e4 100644 --- a/templates/CRM/Event/Page/EventInfo.tpl +++ b/templates/CRM/Event/Page/EventInfo.tpl @@ -89,12 +89,12 @@ {if $event.summary}
- {$event.summary} + {$event.summary|purify}
{/if} {if $event.description}
- {$event.description} + {$event.description|purify}
{/if}
diff --git a/templates/CRM/Event/Page/List.tpl b/templates/CRM/Event/Page/List.tpl index e5f5fa182f..4cbf20b541 100644 --- a/templates/CRM/Event/Page/List.tpl +++ b/templates/CRM/Event/Page/List.tpl @@ -30,7 +30,7 @@ {foreach from=$events key=uid item=event} {$event.title} - {if $event.summary}{$event.summary} ({ts}read more{/ts}...){else} {/if} + {if $event.summary}{$event.summary|purify} ({ts}read more{/ts}...){else} {/if} {if $event.start_date}{$event.start_date|crmDate}{if $event.end_date}
{ts}through{/ts}
{strip} {* Only show end time if end date = start date *} -- 2.25.1