mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-04-04 07:09:14 +00:00
require that the redirect url be to stripe.com and over https
This commit is contained in:
@@ -24,7 +24,8 @@ module Stripe
|
||||
next_action.present? &&
|
||||
next_action["type"] == "authorize_with_url"
|
||||
|
||||
next_action["authorize_with_url"]["url"]
|
||||
url = next_action["authorize_with_url"]["url"]
|
||||
return url if url.match(%r{https?:\/\/[\S]+}) && url.include?("stripe.com")
|
||||
end
|
||||
|
||||
# This field is used because the Spree code recognizes and stores it
|
||||
|
||||
Reference in New Issue
Block a user