From 9159489872a1dd2038888b72b6990484a24ccad8 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Sat, 23 Jun 2007 00:13:40 +0000 Subject: 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 --- actionpack/test/controller/cgi_test.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'actionpack/test/controller') 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 -- cgit v1.2.3