From d79c457dae8cb41b4e606a12607f94043230e915 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Thu, 18 Mar 2021 15:09:21 +0100 Subject: [PATCH] Use native element to create a mailto link - Nothing special done by helper method `mail_to` so using a native element (and it's correctly escaped) --- app/views/spree/admin/orders/index.html.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/spree/admin/orders/index.html.haml b/app/views/spree/admin/orders/index.html.haml index 6ab4d5a238..70f8cf5864 100644 --- a/app/views/spree/admin/orders/index.html.haml +++ b/app/views/spree/admin/orders/index.html.haml @@ -74,7 +74,8 @@ %span.state{'ng-class' => 'order.shipment_state', 'ng-if' => 'order.shipment_state'} {{'js.admin.orders.shipment_states.' + order.shipment_state | t}} %td - = mail_to "{{order.email}}" + %a{ ng: { href: "mailto:{{order.email}}" } } + {{order.email}} %br {{order.full_name}} %td.align-center