mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Fix that env_qs might be nil
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1907 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user