From c65ecdf94fc4f6e0887f6f9a8a47253c0007d53e Mon Sep 17 00:00:00 2001 From: givanz Date: Thu, 9 Jan 2025 18:34:12 +0200 Subject: [PATCH] Changed checkoutroute and module, added htmlspecialchars escape in template --- admin/template/settings.tpl | 10 +++++----- plugin.php | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/admin/template/settings.tpl b/admin/template/settings.tpl index 113e5c5..c7ea601 100755 --- a/admin/template/settings.tpl +++ b/admin/template/settings.tpl @@ -15,12 +15,12 @@ foreach ($this->methods as $index => $method) { ?> @method [data-v-method-payment_method_id]|href = @method [data-v-method-payment_method_id]|addClass = - @method [data-v-method-name] = + @method [data-v-method-name] = /* @method input.method|value = */ @method input.method|name = payment_status) && is_array($this->payment_status)) { foreach ($this->payment_status as $payment_status_index => $payment_status) {?> - @payment_status|innerText = + @payment_status|innerText = @payment_status|value = $payment_status_index @payment_status|addNewAttribute = @@ -80,7 +80,7 @@ foreach ($this->languagesList as $language) { ?> @language [data-v-lang-*] = @language [data-v-lang-*]|name = order_status) && is_array($this->order_status)) { foreach ($this->order_status as $order_status_index => $order_status) {?> - @order_status|innerText = + @order_status|innerText = @order_status|value = $order_status_index @order_status|addNewAttribute = diff --git a/plugin.php b/plugin.php index 6d70a88..a9f6afa 100755 --- a/plugin.php +++ b/plugin.php @@ -81,7 +81,7 @@ function app() { $route = $request->get['route'] ?? ''; $module = $request->get['module'] ?? ''; - if ($route == 'checkout/checkout/index' || $module == 'checkout/checkout') { + if ($route == '/checkout' || $module == 'checkout/checkout/index') { $this->init(); }