diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-10-07 01:01:22 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-10-07 01:01:22 +0000 |
| commit | c5f0cd094e295742801293fc2de576afbad63707 (patch) | |
| tree | 4dd3830c022fd42e56b22bf3ff07ef1ed0314f17 /lib/cgi.rb | |
| parent | b3bdf0c0855dea051af31bac024fae743ff707c9 (diff) | |
| download | ruby-c5f0cd094e295742801293fc2de576afbad63707.tar.gz ruby-c5f0cd094e295742801293fc2de576afbad63707.tar.xz ruby-c5f0cd094e295742801293fc2de576afbad63707.zip | |
* lib/cgi.rb (CGI::Cookie::parse): Cookies from Nokia devices may
not be parsed correctly. A patch from August Z. Flatby
(augustzf) in [ruby-Patches-2595]. [ruby-core:06183]
* pack.c (EXTEND16): [ruby-dev:27383]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/cgi.rb')
| -rw-r--r-- | lib/cgi.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cgi.rb b/lib/cgi.rb index b18a03524..2d75ac248 100644 --- a/lib/cgi.rb +++ b/lib/cgi.rb @@ -870,7 +870,7 @@ class CGI cookies = Hash.new([]) return cookies unless raw_cookie - raw_cookie.split(/[;,] /).each do |pairs| + raw_cookie.split(/[;,]\s?/).each do |pairs| name, values = pairs.split('=',2) next unless name and values name = CGI::unescape(name) |
