Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

More robust OpenID detection

  • Loading branch information...
commit 5c3216e0818e893b9f8572ec675442e43538a6bd 1 parent 12d732f
@singpolyma authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/relparser.rb
View
2  lib/relparser.rb
@@ -75,7 +75,7 @@ def get_provider
# If the page contains an openID tag, use it!
return nil if @page.class != Mechanize::Page
- if @page.at('/html/head/link[@rel="openid.server"]/@href') || @page.at('/html/head/link[@rel="openid2.provider"]/@href')
+ if @page.at('link[rel~="openid.server"]') || @page.at('link[rel~="openid2.provider"]')
return Provider.first(:code => 'open_id')
end
return nil
Please sign in to comment.
Something went wrong with that request. Please try again.