Skip to content

Commit

Permalink
Merge pull request from GHSA-h3fg-h5v3-vf8m
Browse files Browse the repository at this point in the history
Protect `Spree::OrdersController#populate` against CSRF attacks
  • Loading branch information
waiting-for-dev committed Dec 20, 2021
2 parents c6b8926 + 4d17cac commit a1b9bf7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion frontend/app/controllers/spree/orders_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ class OrdersController < Spree::StoreController
before_action :assign_order, only: :update
# note: do not lock the #edit action because that's where we redirect when we fail to acquire a lock
around_action :lock_order, only: :update
skip_before_action :verify_authenticity_token, only: [:populate]

def show
@order = Spree::Order.find_by!(number: params[:id])
Expand Down

0 comments on commit a1b9bf7

Please sign in to comment.