Permalink
Browse files

Fixed extract_host to work with wildcard realms

  • Loading branch information...
1 parent aa8ca3a commit 20df61d48f0f8d65ead4a483630ccb021a7ea89b @dbloete dbloete committed May 9, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/helpers/application_helper.rb
@@ -17,7 +17,7 @@ def identity_page?
# Extracts the hostname from the given url, which is used to
# display the name of the requesting website to the user
def extract_host(u)
- URI.parse(u).host
+ URI.split(u).compact[1]
end
# Custom label names for request properties (like SReg data)

0 comments on commit 20df61d

Please sign in to comment.