diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-23 09:16:35 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-23 09:16:35 +0000 |
commit | d554227411aa995e1cb243dfa11f549e6bc4bb07 (patch) | |
tree | b3cafafddfb6615f05483f8f8de2f15b219debc2 | |
parent | b366dbd952417a610913e05ad58024b7da03fdb8 (diff) | |
download | rails-d554227411aa995e1cb243dfa11f549e6bc4bb07.tar.gz rails-d554227411aa995e1cb243dfa11f549e6bc4bb07.tar.bz2 rails-d554227411aa995e1cb243dfa11f549e6bc4bb07.zip |
Fix that env_qs might be nil
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1906 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb b/actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb index 20fc6ff47f..c7b8d63203 100644 --- a/actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb +++ b/actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb @@ -41,8 +41,8 @@ class CGI #:nodoc: def read_params_from_query # fixes CGI querystring parsing for lighttpd env_qs = env_table['QUERY_STRING'] - if env_qs.blank? && !(uri=env_table['REQUEST_URI']).blank? - env_qs.replace(uri.split('?', 2)[1] || '') + if env_qs.blank? && !(uri = env_table['REQUEST_URI']).blank? + uri.split('?', 2)[1] || '') else env_qs end |