From: Mike Macgirvin Date: Mon, 11 Oct 2010 03:02:29 +0000 (-0700) Subject: activity objects weren't escaped properly X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=70bd7a6509f262a943912bbd904c92718f323f9c;p=friendica.git activity objects weren't escaped properly --- 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; }