summaryrefslogtreecommitdiff
path: root/lib/attachmentlist.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-07-28 10:02:39 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-07-28 10:02:39 -0400
commita79a860d81369c0208655a9cd2b83dea7785bebf (patch)
treedee942b7790c96d6939471ba1439134d3e4b2b5f /lib/attachmentlist.php
parent7835393c25e26ea31b8ee3ca4f956ff9d209c6cf (diff)
parent87bc612778932748d5b638af4c45493435c404d4 (diff)
Merge branch '0.8.x' of git@gitorious.org:laconica/mainline into 0.8.x
Diffstat (limited to 'lib/attachmentlist.php')
-rw-r--r--lib/attachmentlist.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/attachmentlist.php b/lib/attachmentlist.php
index f6a1b59d0..41d03f8e2 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;