Index: openid.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/openid/openid.inc,v
retrieving revision 1.17
diff -u -p -r1.17 openid.inc
--- openid.inc 18 Jun 2007 15:29:04 -0000 1.17
+++ openid.inc 4 Jan 2008 23:24:36 -0000
@@ -191,7 +191,7 @@ function _openid_nonce() {
*/
function _openid_link_href($rel, $html) {
$rel = preg_quote($rel);
- preg_match('||iU', $html, $matches);
+ preg_match('|]+rel=["\'](.*)'. $rel .'(.*)["\'](.*)/?>|iU', $html, $matches);
if (isset($matches[3])) {
preg_match('|href=["\']([^"]+)["\']|iU', $matches[0], $href);
return trim($href[1]);