From 466de9607ed26d66b4ded3c705db23ff103de613 Mon Sep 17 00:00:00 2001 From: colemanw Date: Fri, 19 Sep 2025 14:06:01 -0400 Subject: [PATCH] Ensure html attributes are escaped in templates This adds escape='htmlattribute' to all translations within tags, which ensures any special characters in the translated string are properly escaped and don't break out of the quotes or cause other problems. See https://github.com/civicrm/civicrm-core/pull/26792 Note: This requires CiviCRM 5.65 at minimum. --- templates/CRM/Core/Page/PaymentPage.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/CRM/Core/Page/PaymentPage.tpl b/templates/CRM/Core/Page/PaymentPage.tpl index 42139fdd7..502d713c8 100644 --- a/templates/CRM/Core/Page/PaymentPage.tpl +++ b/templates/CRM/Core/Page/PaymentPage.tpl @@ -15,7 +15,7 @@ > {* this is a hack in core & it's a hack here... *} {if $core_field_name == 'cvv2'} - + {/if} {if $core_field_name == 'credit_card_type'}
@@ -68,7 +68,7 @@ {/foreach} {if empty($display_fields)}

{ts}Please Click the pay now button if you are not automatically redirected{/ts}

{/if} - + {* jQuery validate *} {include file="CRM/Form/validate.tpl"}