diff --git a/include/items.php b/include/items.php index e4376fbee..ab2fd644a 100644 --- a/include/items.php +++ b/include/items.php @@ -234,15 +234,15 @@ function construct_activity($item) { $o = '' . "\r\n"; $r = @simplexml_load_string($item['object']); if($r->type) - $o .= '' . $r->type . '' . "\r\n"; + $o .= '' . xmlify($r->type) . '' . "\r\n"; if($r->id) - $o .= '' . $r->id . '' . "\r\n"; + $o .= '' . xmlify($r->id) . '' . "\r\n"; if($r->link) - $o .= '' . "\r\n"; + $o .= '' . "\r\n"; if($r->title) - $o .= '' . $r->title . '' . "\r\n"; + $o .= '' . xmlify($r->title) . '' . "\r\n"; if($r->content) - $o .= '' . bbcode($r->content) . '' . "\r\n"; + $o .= '' . xmlify(bbcode($r->content)) . '' . "\r\n"; $o .= '' . "\r\n"; return $o; }