diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-23 09:18:16 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-23 09:18:16 +0000 |
commit | eddd7c453b9f34ec95b64d1dee9b8fcf560a4b29 (patch) | |
tree | a710e9844a7b7134c71f5f06759473cbef9015f6 | |
parent | d554227411aa995e1cb243dfa11f549e6bc4bb07 (diff) | |
download | rails-eddd7c453b9f34ec95b64d1dee9b8fcf560a4b29.tar.gz rails-eddd7c453b9f34ec95b64d1dee9b8fcf560a4b29.tar.bz2 rails-eddd7c453b9f34ec95b64d1dee9b8fcf560a4b29.zip |
Fix that env_qs might be nil
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1907 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb | 2 |
1 files changed, 1 insertions, 1 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 c7b8d63203..507fd2fba7 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 @@ -42,7 +42,7 @@ class CGI #:nodoc: # fixes CGI querystring parsing for lighttpd env_qs = env_table['QUERY_STRING'] if env_qs.blank? && !(uri = env_table['REQUEST_URI']).blank? - uri.split('?', 2)[1] || '') + uri.split('?', 2)[1] || '' else env_qs end |