From dd8782f68140a05f4fc4084aceb5e892ef4c27b7 Mon Sep 17 00:00:00 2001 From: BitcoinMitchell Date: Mon, 19 Feb 2024 23:10:01 +0100 Subject: [PATCH] [Core] Ensure all TPL variables are escaped --- .../views/templates/admin/invoice_block.tpl | 26 +++++++++---------- .../views/templates/hooks/order_detail.tpl | 22 ++++++++-------- .../views/templates/hooks/payment_option.tpl | 4 +-- .../views/templates/hooks/payment_return.tpl | 16 ++++++------ 4 files changed, 34 insertions(+), 34 deletions(-) diff --git a/modules/btcpay/views/templates/admin/invoice_block.tpl b/modules/btcpay/views/templates/admin/invoice_block.tpl index 7f7c0a4..99041d6 100644 --- a/modules/btcpay/views/templates/admin/invoice_block.tpl +++ b/modules/btcpay/views/templates/admin/invoice_block.tpl @@ -9,7 +9,7 @@
@@ -50,8 +50,8 @@ {foreach $paymentMethods as $paymentMethod} {if not empty($paymentMethod->getPayments())} {assign currencyCode "_"|explode:$paymentMethod.paymentMethod|current} - - {$currencyCode} + + {$currencyCode|escape:'htmlall':'UTF-8'} {/if} {/foreach} @@ -61,24 +61,24 @@ {foreach $paymentMethods as $paymentMethod} {if not empty($paymentMethod->getPayments())} {assign currencyCode "_"|explode:$paymentMethod.paymentMethod|current} -