Skip to content

Commit

Permalink
fix: update mollie host
Browse files Browse the repository at this point in the history
  • Loading branch information
leuke-naam committed Dec 26, 2024
1 parent afda016 commit fd37db3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/members/payments_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def pay_activities
end

# Check if it's a valid URI and matches your whitelist of acceptable domains (e.g., only http(s)://example.com)
if url.is_a?(URI::HTTP) && ['mollie.com'].include?(url.host)
if url.is_a?(URI::HTTP) && ['www.mollie.com'].include?(url.host)
redirect_to(url.to_s)
else
# Fallback to a safe default redirect if the URI is invalid or not in the whitelist
Expand Down

0 comments on commit fd37db3

Please sign in to comment.