diff options
author | Jamis Buck <jamis@37signals.com> | 2008-02-12 21:45:39 +0000 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2008-02-12 21:45:39 +0000 |
commit | 11787b802a1ea8152507e94940f9af394d343c4c (patch) | |
tree | 29ddb960a4d346826115b24a4d7a40bdeea6e52c /actionpack/test/controller | |
parent | 873939013455135dfe751156c7f8c7ad6fbe6b59 (diff) | |
download | rails-11787b802a1ea8152507e94940f9af394d343c4c.tar.gz rails-11787b802a1ea8152507e94940f9af394d343c4c.tar.bz2 rails-11787b802a1ea8152507e94940f9af394d343c4c.zip |
remove support for ampersand-delimited cookie values
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8861 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/cookie_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/test/controller/cookie_test.rb b/actionpack/test/controller/cookie_test.rb index 6a82a26261..0483fe918a 100644 --- a/actionpack/test/controller/cookie_test.rb +++ b/actionpack/test/controller/cookie_test.rb @@ -132,4 +132,9 @@ class CookieTest < Test::Unit::TestCase assert cookie_str !~ /secure/ assert cookie_str !~ /HttpOnly/ end + + def test_cookies_should_not_be_split_on_ampersand_values + cookies = CGI::Cookie.parse('return_to=http://rubyonrails.org/search?term=api&scope=all&global=true') + assert_equal({"return_to" => ["http://rubyonrails.org/search?term=api&scope=all&global=true"]}, cookies) + end end |