Update oembed.php
This commit is contained in:
parent
ec67e0ab22
commit
339f95c647
@ -336,7 +336,11 @@ function oembed_format_object($j){
|
||||
|
||||
case "rich": {
|
||||
// not so safe..
|
||||
(($j['zrl']) ? $ret = $j['html'] : $ret.= $jhtml);
|
||||
if($j['zrl']) {
|
||||
$ret = ((preg_match('/^<div[^>]+>(.*?)<\/div>$/is',$j['html'],$o)) ? $o[1] : $j['html']);
|
||||
} else {
|
||||
$ret.= $jhtml;
|
||||
};
|
||||
}; break;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user