From 8debc870ccc47fc2b76369cfff262f0464b3d6b6 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Tue, 3 Jan 2023 12:54:11 +1100 Subject: [PATCH] CiviEvent - Escape parameters in help text --- CRM/Event/Form/ManageEvent.php | 9 +-------- templates/CRM/Contact/Form/Search/Basic.hlp | 4 ++-- templates/CRM/Event/Form/ManageEvent/EventInfo.hlp | 2 +- templates/CRM/Event/Form/ManageEvent/Tab.hlp | 10 ++++++---- templates/CRM/Event/Form/ManageEvent/Tab.tpl | 2 +- 5 files changed, 11 insertions(+), 16 deletions(-) diff --git a/CRM/Event/Form/ManageEvent.php b/CRM/Event/Form/ManageEvent.php index 1de4476ef3..f630bd7ead 100644 --- a/CRM/Event/Form/ManageEvent.php +++ b/CRM/Event/Form/ManageEvent.php @@ -116,14 +116,7 @@ class CRM_Event_Form_ManageEvent extends CRM_Core_Form { $participantListingID = $eventInfo['participant_listing_id'] ?? NULL; //CRM_Core_DAO::getFieldValue( 'CRM_Event_DAO_Event', $this->_id, 'participant_listing_id' ); - if ($participantListingID) { - $participantListingURL = CRM_Utils_System::url('civicrm/event/participant', - "reset=1&id={$this->_id}", - TRUE, NULL, TRUE, TRUE - ); - $this->assign('participantListingURL', $participantListingURL); - } - + $this->assign('participantListingID', $participantListingID); $this->assign('isOnlineRegistration', CRM_Utils_Array::value('is_online_registration', $eventInfo)); $this->assign('id', $this->_id); diff --git a/templates/CRM/Contact/Form/Search/Basic.hlp b/templates/CRM/Contact/Form/Search/Basic.hlp index 5d84d1f7f7..9e95863300 100644 --- a/templates/CRM/Contact/Form/Search/Basic.hlp +++ b/templates/CRM/Contact/Form/Search/Basic.hlp @@ -20,7 +20,7 @@ {ts}Group Search{/ts} {/htxt} {htxt id="id-smog-criteria"} -

{ts 1=$params.group_title}Contacts in the %1 group are listed below.{/ts} +

{ts 1=$params.group_title|smarty:nodefaults|escape}Contacts in the %1 group are listed below.{/ts}

-- 2.25.1