diff options
author | Max Kostikov <max@kostikov.co> | 2018-10-30 16:49:48 +0100 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2018-10-30 16:49:48 +0100 |
commit | 339f95c647c82d113617115f38d1ea6ac91afc91 (patch) | |
tree | 02963581f93acfd4eb3d9a5e43607801217862f7 | |
parent | ec67e0ab22c0d3f2851b0c420636e76b54af1b79 (diff) | |
download | volse-hubzilla-339f95c647c82d113617115f38d1ea6ac91afc91.tar.gz volse-hubzilla-339f95c647c82d113617115f38d1ea6ac91afc91.tar.bz2 volse-hubzilla-339f95c647c82d113617115f38d1ea6ac91afc91.zip |
Update oembed.php
-rwxr-xr-x | include/oembed.php | 6 |
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; } |