From 70bd7a6509f262a943912bbd904c92718f323f9c Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Sun, 10 Oct 2010 20:02:29 -0700 Subject: [PATCH] activity objects weren't escaped properly --- include/items.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/items.php b/include/items.php index e4376fbeeb..ab2fd644a1 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; }