mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-08 22:56:06 +00:00
Don't use :html_safe with payment method name in checkout options in case it contains something malicious
Co-authored-by: Maikel <maikel@email.org.au>
This commit is contained in:
committed by
Filipe
parent
747c88fb35
commit
564e4d802c
@@ -61,7 +61,7 @@
|
||||
= input.check_box
|
||||
= input.label
|
||||
%p
|
||||
&mdash
|
||||
—
|
||||
%em>
|
||||
= shared_shipping_method.distributors.where(id: @order_cycle.distributor_ids).map(&:name).join(", ")
|
||||
%td
|
||||
@@ -71,7 +71,9 @@
|
||||
%li
|
||||
= shared_payment_method.name
|
||||
%p
|
||||
= "—<em>#{shared_payment_method.distributors.where(id: @order_cycle.distributor_ids).map(&:name).join(", ")}</em>".html_safe
|
||||
—
|
||||
%em
|
||||
= shared_payment_method.distributors.where(id: @order_cycle.distributor_ids).map(&:name).join(", ")
|
||||
|
||||
%div#save-bar
|
||||
%div.container
|
||||
|
||||
Reference in New Issue
Block a user