Skip to content

Commit

Permalink
Merge branch 'master' of github.com:havard/node-openid
Browse files Browse the repository at this point in the history
  • Loading branch information
havard committed Feb 19, 2011
2 parents 9802f3c + 2e6117a commit 7fde90f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion openid.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ function _matchMetaTag(html)

function _matchLinkTag(html, rel)
{
var providerLinkMatches = new RegExp('<link\\s+.*?rel="' + rel + '".*?>', 'ig').exec(html);
var providerLinkMatches = new RegExp('<link\\s+.*?rel="[^"]*?' + rel + '[^"]*?".*?>', 'ig').exec(html);

if(!providerLinkMatches || providerLinkMatches.length < 1)
{
Expand Down Expand Up @@ -616,6 +616,10 @@ openid.associate = function(provider, callback, strict, algorithm)
callback(data);
}
}
else if (data.error)
{
callback(data);
}
else
{
var secret = null;
Expand Down

0 comments on commit 7fde90f

Please sign in to comment.