aboutsummaryrefslogtreecommitdiffstats
path: root/include/oembed.php
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2018-10-30 16:49:48 +0100
committerMax Kostikov <max@kostikov.co>2018-10-30 16:49:48 +0100
commit339f95c647c82d113617115f38d1ea6ac91afc91 (patch)
tree02963581f93acfd4eb3d9a5e43607801217862f7 /include/oembed.php
parentec67e0ab22c0d3f2851b0c420636e76b54af1b79 (diff)
downloadvolse-hubzilla-339f95c647c82d113617115f38d1ea6ac91afc91.tar.gz
volse-hubzilla-339f95c647c82d113617115f38d1ea6ac91afc91.tar.bz2
volse-hubzilla-339f95c647c82d113617115f38d1ea6ac91afc91.zip
Update oembed.php
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;
}