Skip to content

Commit

Permalink
chore: conform to linter
Browse files Browse the repository at this point in the history
  • Loading branch information
SilasPeters committed Dec 30, 2024
1 parent 5d7ed4d commit 8f64144
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/controllers/members/payments_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ def pay_activities

# 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) && [
'www.mollie.com', # staging
'pay.ideal.nl', # production
].include?(url.host)
'www.mollie.com', # staging
'pay.ideal.nl' # production
].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 8f64144

Please sign in to comment.