diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-11-20 14:00:39 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-11-20 14:00:39 +0000 |
commit | bea016944f788f132ca2b807524939db35a12904 (patch) | |
tree | 51e33feea577a40e4a6f3894d82d59c74257a04a /modules/openid | |
parent | a1e5ac031e22001f25d8ad1a9b0cb1e4105a92cf (diff) | |
download | brdo-bea016944f788f132ca2b807524939db35a12904.tar.gz brdo-bea016944f788f132ca2b807524939db35a12904.tar.bz2 |
- Patch #193800 by jp.stacey: OpenID service discovery confused by newlines within meta or link tags.
Diffstat (limited to 'modules/openid')
-rw-r--r-- | modules/openid/openid.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/openid/openid.inc b/modules/openid/openid.inc index 1eb677341..e7544593a 100644 --- a/modules/openid/openid.inc +++ b/modules/openid/openid.inc @@ -191,7 +191,7 @@ function _openid_nonce() { */ function _openid_link_href($rel, $html) { $rel = preg_quote($rel); - preg_match('|<link\s+rel=["\'](.*)'. $rel .'(.*)["\'](.*)/?>|iU', $html, $matches); + preg_match('|<link\s+rel=["\'](.*)'. $rel .'(.*)["\'](.*)/?>|iUs', $html, $matches); if (isset($matches[3])) { preg_match('|href=["\']([^"]+)["\']|iU', $matches[0], $href); return trim($href[1]); @@ -203,9 +203,9 @@ function _openid_link_href($rel, $html) { * Pull the http-equiv attribute out of an html meta element */ function _openid_meta_httpequiv($equiv, $html) { - preg_match('|<meta\s+http-equiv=["\']'. $equiv .'["\'](.*)/?>|iU', $html, $matches); + preg_match('|<meta\s+http-equiv=["\']'. $equiv .'["\'](.*)/?>|iUs', $html, $matches); if (isset($matches[1])) { - preg_match('|content=["\']([^"]+)["\']|iU', $matches[1], $content); + preg_match('|content=["\']([^"]+)["\']|iUs', $matches[1], $content); return $content[1]; } return FALSE; |