Allow the oEmbed <link> tag to be split across lines

This commit is contained in:
Craig Andrews 2009-08-31 22:16:49 -04:00
parent 3fd0a9693d
commit 00032e1112

View File

@ -303,7 +303,7 @@ class Services_oEmbed
// Find all <link /> tags that have a valid oembed type set. We then
// extract the href attribute for each type.
$regexp = '#<link([^>]*)type="' .
'(application/json|text/xml)\+oembed"([^>]*)>#i';
'(application/json|text/xml)\+oembed"([^>]*)>#im';
$m = $ret = array();
if (!preg_match_all($regexp, $body, $m)) {