We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
SecureRandom.urlsafe_base64
padding: false
1 parent d071982 commit 12c4b77Copy full SHA for 12c4b77
actionpack/lib/action_controller/metal/request_forgery_protection.rb
@@ -469,7 +469,7 @@ def normalize_action_path(action_path) # :doc:
469
470
def generate_csrf_token # :nodoc:
471
if urlsafe_csrf_tokens
472
- SecureRandom.urlsafe_base64(AUTHENTICITY_TOKEN_LENGTH, padding: false)
+ SecureRandom.urlsafe_base64(AUTHENTICITY_TOKEN_LENGTH)
473
else
474
SecureRandom.base64(AUTHENTICITY_TOKEN_LENGTH)
475
end
0 commit comments