Allow the oEmbed <link> tag to be split across lines
This commit is contained in:
parent
3fd0a9693d
commit
00032e1112
|
@ -303,7 +303,7 @@ class Services_oEmbed
|
||||||
// Find all <link /> tags that have a valid oembed type set. We then
|
// Find all <link /> tags that have a valid oembed type set. We then
|
||||||
// extract the href attribute for each type.
|
// extract the href attribute for each type.
|
||||||
$regexp = '#<link([^>]*)type="' .
|
$regexp = '#<link([^>]*)type="' .
|
||||||
'(application/json|text/xml)\+oembed"([^>]*)>#i';
|
'(application/json|text/xml)\+oembed"([^>]*)>#im';
|
||||||
|
|
||||||
$m = $ret = array();
|
$m = $ret = array();
|
||||||
if (!preg_match_all($regexp, $body, $m)) {
|
if (!preg_match_all($regexp, $body, $m)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user