From bcb81167960293596d44587ea237ace4d505b960 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 11 Jan 2005 00:15:02 +0000 Subject: Fixed that host would choke when cgi.host returned nil #432 [Tobias Luetke] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@381 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/CHANGELOG | 2 ++ actionpack/lib/action_controller/cgi_process.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'actionpack') diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index 032046408e..d23a2abb04 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Fixed that host would choke when cgi.host returned nil #432 [Tobias Luetke] + * Added that form helpers now take an index option #448 [Tim Bates] Example: diff --git a/actionpack/lib/action_controller/cgi_process.rb b/actionpack/lib/action_controller/cgi_process.rb index 8bebac0e3e..eda8fd651b 100644 --- a/actionpack/lib/action_controller/cgi_process.rb +++ b/actionpack/lib/action_controller/cgi_process.rb @@ -61,7 +61,7 @@ module ActionController #:nodoc: end def host - env["HTTP_X_FORWARDED_HOST"] || @cgi.host.split(":").first + env["HTTP_X_FORWARDED_HOST"] || @cgi.host.to_s.split(":").first end def session -- cgit v1.2.3