X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fattachmentlist.php;h=41d03f8e2124b2d3a9762aad2b3963d417d6cdd8;hb=ac75772150c3fe9411408ac44db04e774d095aa0;hp=f6a1b59d03d8521752aa58f9ade72c1ac82d428e;hpb=71dc910a53eb2aba509c418e7ac0f8e9b94cba9a;p=quix0rs-gnu-social.git diff --git a/lib/attachmentlist.php b/lib/attachmentlist.php index f6a1b59d03..41d03f8e21 100644 --- a/lib/attachmentlist.php +++ b/lib/attachmentlist.php @@ -340,7 +340,12 @@ class Attachment extends AttachmentListItem case 'video': case 'link': if (!empty($this->oembed->html)) { - $this->out->raw($this->oembed->html); + require_once INSTALLDIR.'/extlib/htmLawed/htmLawed.php'; + $config = array( + 'safe'=>1, + 'elements'=>'*+object+embed'); + $this->out->raw(htmLawed($this->oembed->html,$config)); + //$this->out->raw($this->oembed->html); } break;