diff options
author | Rich Cavanaugh <cavanaugh@fatjam.com> | 2008-05-13 12:19:27 -0400 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-05-13 10:51:55 -0700 |
commit | d8bcec6ce6b48f271af5c566791417a58b8a617d (patch) | |
tree | 9254feb851340e20e3121b6461984b376126aed3 /actionpack/lib | |
parent | d16fbe53b202d52b5ef12526941ed50da2daf38f (diff) | |
download | rails-d8bcec6ce6b48f271af5c566791417a58b8a617d.tar.gz rails-d8bcec6ce6b48f271af5c566791417a58b8a617d.tar.bz2 rails-d8bcec6ce6b48f271af5c566791417a58b8a617d.zip |
make CGI::Cookie handle deleting a cookie properly
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/cgi_ext/cookie.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/cgi_ext/cookie.rb b/actionpack/lib/action_controller/cgi_ext/cookie.rb index e35bab5f5a..a244e2a39a 100644 --- a/actionpack/lib/action_controller/cgi_ext/cookie.rb +++ b/actionpack/lib/action_controller/cgi_ext/cookie.rb @@ -37,7 +37,7 @@ class CGI #:nodoc: @path = nil else @name = name['name'] - @value = name['value'].kind_of?(String) ? [name['value']] : Array(name['value']) + @value = (name['value'].kind_of?(String) ? [name['value']] : Array(name['value'])).delete_if(&:blank?) @domain = name['domain'] @expires = name['expires'] @secure = name['secure'] || false |