Flowdock
method

decode_csrf_token

Importance_0
v6.1.3.1 - Show latest stable - 0 notes - Class: ActionController::RequestForgeryProtection
decode_csrf_token(encoded_csrf_token) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 486
      def decode_csrf_token(encoded_csrf_token) # :nodoc:
        if urlsafe_csrf_tokens
          Base64.urlsafe_decode64(encoded_csrf_token)
        else
          begin
            Base64.strict_decode64(encoded_csrf_token)
          rescue ArgumentError
            Base64.urlsafe_decode64(encoded_csrf_token)
          end
        end
      end
Register or log in to add new notes.