Skip to content

Commit 5d7ed4d

Browse files
committed
feat: add pay.ideal.nl to URL whitelist
1 parent 0d85b36 commit 5d7ed4d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/controllers/members/payments_controller.rb

+4-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ def pay_activities
5555
end
5656

5757
# Check if it's a valid URI and matches your whitelist of acceptable domains (e.g., only http(s)://example.com)
58-
if url.is_a?(URI::HTTP) && ['www.mollie.com'].include?(url.host)
58+
if url.is_a?(URI::HTTP) && [
59+
'www.mollie.com', # staging
60+
'pay.ideal.nl', # production
61+
].include?(url.host)
5962
redirect_to(url.to_s)
6063
else
6164
# Fallback to a safe default redirect if the URI is invalid or not in the whitelist

0 commit comments

Comments
 (0)