aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/cgi_test.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-06-23 00:13:40 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-06-23 00:13:40 +0000
commit9159489872a1dd2038888b72b6990484a24ccad8 (patch)
tree9828e78b965dc1c135d4eb2010bd7e90ba5a005f /actionpack/test/controller/cgi_test.rb
parent3bf3042a6cd29fd3ccc18541e84ea8ca5c791889 (diff)
downloadrails-9159489872a1dd2038888b72b6990484a24ccad8.tar.gz
rails-9159489872a1dd2038888b72b6990484a24ccad8.tar.bz2
rails-9159489872a1dd2038888b72b6990484a24ccad8.zip
Don't mistakenly interpret the request uri as the query string. Closes #8731.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7084 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller/cgi_test.rb')
-rwxr-xr-xactionpack/test/controller/cgi_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/test/controller/cgi_test.rb b/actionpack/test/controller/cgi_test.rb
index da3ca245e1..a5b24ebcd4 100755
--- a/actionpack/test/controller/cgi_test.rb
+++ b/actionpack/test/controller/cgi_test.rb
@@ -67,6 +67,11 @@ class CgiRequestParamsParsingTest < BaseCgiTest
@request.env['RAW_POST_DATA'] = data
assert_equal({"flamenco"=> "love"}, @request.request_parameters)
end
+
+ def test_doesnt_interpret_request_uri_as_query_string_when_missing
+ @request.env['REQUEST_URI'] = 'foo'
+ assert_equal({}, @request.query_parameters)
+ end
end