Permalink
Browse files

Don't shadow query string method

  • Loading branch information...
1 parent 6f530de commit 3a2ff17af66dfb135ead212de458e7f6860c8004 @josh josh committed Aug 20, 2008
Showing with 10 additions and 1 deletion.
  1. +10 −1 actionpack/lib/action_controller/rack_process.rb
@@ -25,7 +25,7 @@ def initialize(env, session_options = DEFAULT_SESSION_OPTIONS)
end
%w[ AUTH_TYPE GATEWAY_INTERFACE PATH_INFO
- PATH_TRANSLATED QUERY_STRING REMOTE_HOST
+ PATH_TRANSLATED REMOTE_HOST
REMOTE_IDENT REMOTE_USER SCRIPT_NAME
SERVER_NAME SERVER_PROTOCOL
@@ -37,6 +37,15 @@ def initialize(env, session_options = DEFAULT_SESSION_OPTIONS)
end
end
+ def query_string
+ qs = super
+ if !qs.blank?
+ qs
+ else
+ @env['QUERY_STRING']
+ end
+ end
+
def body_stream #:nodoc:
@env['rack.input']
end

0 comments on commit 3a2ff17

Please sign in to comment.