diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2017-07-24 21:06:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-24 21:06:11 -0400 |
commit | 65f861ee1e8cdeec1533c565f949d05cf8195965 (patch) | |
tree | 57daa14bcb349a1b2c531d28f521def17aed4f84 /actionpack/lib/action_controller | |
parent | 7d133b23b6a366de3658c4e1c6af546e611de728 (diff) | |
parent | c0e2cfdc3fd476e229ede5cda59dea6374a730e7 (diff) | |
download | rails-65f861ee1e8cdeec1533c565f949d05cf8195965.tar.gz rails-65f861ee1e8cdeec1533c565f949d05cf8195965.tar.bz2 rails-65f861ee1e8cdeec1533c565f949d05cf8195965.zip |
Merge pull request #29919 from kirs/actionpack-frozen-friendly
Make actionpack frozen string friendly
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/metal/http_authentication.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/http_authentication.rb b/actionpack/lib/action_controller/metal/http_authentication.rb index d8bc895265..08d9b094f3 100644 --- a/actionpack/lib/action_controller/metal/http_authentication.rb +++ b/actionpack/lib/action_controller/metal/http_authentication.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "base64" require "active_support/security_utils" @@ -475,7 +477,7 @@ module ActionController # This removes the <tt>"</tt> characters wrapping the value. def rewrite_param_values(array_params) - array_params.each { |param| (param[1] || "").gsub! %r/^"|"$/, "" } + array_params.each { |param| (param[1] || "".dup).gsub! %r/^"|"$/, "" } end # This method takes an authorization body and splits up the key-value |