Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #4731 from ndbroadbent/revert_build_original_fullpath

Reverted build_original_fullpath method refactor
  • Loading branch information...
commit fd3211ef677efe9531f38db58919a8c90d65892a 2 parents c0dafb6 + 2d62334
@spastorino spastorino authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 railties/lib/rails/application.rb
View
10 railties/lib/rails/application.rb
@@ -290,7 +290,15 @@ def initialize_console #:nodoc:
end
def build_original_fullpath(env)
- ["#{env["SCRIPT_NAME"]}#{env["PATH_INFO"]}", env["QUERY_STRING"]].reject(&:blank?).join("?")
+ path_info = env["PATH_INFO"]
+ query_string = env["QUERY_STRING"]
+ script_name = env["SCRIPT_NAME"]
+
+ if query_string.present?
+ "#{script_name}#{path_info}?#{query_string}"
+ else
+ "#{script_name}#{path_info}"
+ end
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.