diff options
Diffstat (limited to 'actionpack/lib/action_controller/request.rb')
-rwxr-xr-x | actionpack/lib/action_controller/request.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/request.rb b/actionpack/lib/action_controller/request.rb index 7a8fe49d0f..c41146f56a 100755 --- a/actionpack/lib/action_controller/request.rb +++ b/actionpack/lib/action_controller/request.rb @@ -116,7 +116,7 @@ module ActionController # in "www.rubyonrails.co.uk". def subdomains(tld_length = 1) parts = host.split('.') - parts - parts.last(1 + tld_length) + parts[0..-(tld_length+2)] end # Receive the raw post data. |