Permalink
Browse files

Backwords compatible for 2.1 [#36 state:resolved]

  • Loading branch information...
josh committed Sep 16, 2008
1 parent 3382bc4 commit 00d8bc7f97b9a3113e004475b63dbf84f5397237
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/open_id_authentication.rb
@@ -154,7 +154,10 @@ def open_id_redirect_url(open_id_request, return_to = nil, method = nil)
end
def requested_url
- "#{request.protocol + request.host_with_port + self.class.relative_url_root.to_s + request.path}"
+ relative_url_root = self.class.respond_to?(:relative_url_root) ?
+ self.class.relative_url_root.to_s :
+ request.relative_url_root
+ "#{request.protocol + request.host_with_port + relative_url_root + request.path}"
end
def timeout_protection_from_identity_server

0 comments on commit 00d8bc7

Please sign in to comment.