Replace deprecated URI.unescape with CGI.unescape

This commit is contained in:
luisramos0
2019-12-06 14:28:03 +00:00
parent 042162eda8
commit 07e2317369

View File

@@ -83,7 +83,7 @@ module Spree
return unless protect_against_forgery?
auth_token = params[request_forgery_protection_token]
return if auth_token && form_authenticity_token == URI.unescape(auth_token)
return if auth_token && form_authenticity_token == CGI.unescape(auth_token)
raise(ActionController::InvalidAuthenticityToken)
end