diff options
Diffstat (limited to 'actionpack/lib/action_controller/cgi_ext/cookie_performance_fix.rb')
-rw-r--r-- | actionpack/lib/action_controller/cgi_ext/cookie_performance_fix.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/cgi_ext/cookie_performance_fix.rb b/actionpack/lib/action_controller/cgi_ext/cookie_performance_fix.rb index d73cb0355f..59b9dda396 100644 --- a/actionpack/lib/action_controller/cgi_ext/cookie_performance_fix.rb +++ b/actionpack/lib/action_controller/cgi_ext/cookie_performance_fix.rb @@ -108,7 +108,7 @@ class CGI #:nodoc: cookies = Hash.new([]) if raw_cookie - raw_cookie.split(/; /).each do |pairs| + raw_cookie.split(/; ?/).each do |pairs| name, values = pairs.split('=',2) next unless name and values name = CGI::unescape(name) |