From 8f641446ba81bae33f8a2aa6bd651df2d4fbb908 Mon Sep 17 00:00:00 2001 From: Silas <69711739+SilasPeters@users.noreply.github.com> Date: Mon, 30 Dec 2024 13:04:08 +0100 Subject: [PATCH] chore: conform to linter --- app/controllers/members/payments_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/members/payments_controller.rb b/app/controllers/members/payments_controller.rb index f01c7fa3e..cd1c58900 100644 --- a/app/controllers/members/payments_controller.rb +++ b/app/controllers/members/payments_controller.rb @@ -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