Fix param whitelisting

Co-authored-by: Maikel <maikel@email.org.au>
This commit is contained in:
Matt-Yorkley
2022-01-18 09:14:55 +00:00
committed by GitHub
parent 1d4803c31a
commit 7c2b3cdf51

View File

@@ -70,7 +70,7 @@ class SplitCheckoutController < ::BaseController
end
def validate_current_step!
step = params[:step].tap{ |step| ["details", "payment", "summary"].include? step }
step = ([params[:step]] & ["details", "payment", "summary"]).first
send("validate_#{step}!")
end