Update oembed.php

This commit is contained in:
Max Kostikov 2018-10-30 16:49:48 +01:00
parent ec67e0ab22
commit 339f95c647

View File

@ -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;
}