aboutsummaryrefslogtreecommitdiffstats
path: root/include/oembed.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/oembed.php')
-rwxr-xr-xinclude/oembed.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/oembed.php b/include/oembed.php
index 5a37defb8..e5557dc11 100755
--- a/include/oembed.php
+++ b/include/oembed.php
@@ -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;
}