Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Remove unnecessary html_safe call to prevent potential XSS vulnerabilities.

Damian Legawiec4b0a7a96be58
diff --git a/admin/app/views/spree/admin/coupon_codes/index.csv.erb b/admin/app/views/spree/admin/coupon_codes/index.csv.erb
index d9f7e9d413..7036153c85 100644
--- a/admin/app/views/spree/admin/coupon_codes/index.csv.erb
+++ b/admin/app/views/spree/admin/coupon_codes/index.csv.erb
@@ -10,5 +10,5 @@
coupon_code[0].upcase,
coupon_code[1],
coupon_code[2]
- ]).strip.html_safe %>
+ ]).strip %>
<%- end -%>
diff --git a/admin/app/views/spree/admin/gift_cards/index.csv.erb b/admin/app/views/spree/admin/gift_cards/index.csv.erb
index 22229c793b..941fe209fb 100644
--- a/admin/app/views/spree/admin/gift_cards/index.csv.erb
+++ b/admin/app/views/spree/admin/gift_cards/index.csv.erb
@@ -18,5 +18,5 @@
gift_card.display_state,
gift_card.expires_at,
gift_card.user&.email,
- ]).strip.html_safe %>
+ ]).strip %>
<%- end -%>