Skip to content
Browse files

More robust OpenID detection

  • Loading branch information...
1 parent 12d732f commit 5c3216e0818e893b9f8572ec675442e43538a6bd @singpolyma committed Oct 11, 2012
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

0 comments on commit 5c3216e

Please sign in to comment.
Something went wrong with that request. Please try again.