git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit c86f0ffa authored by Evan Prodromou's avatar Evan Prodromou

Avoid slurping objects recursively in activity parsing

parent 22b565a9
......@@ -176,6 +176,10 @@ class Activity
if ($objectEls->length > 0) {
for ($i = 0; $i < $objectEls->length; $i++) {
$objectEl = $objectEls->item($i);
// Only immediate children (don't slurp embedded activities' objects!)
if ($objectEl->parentNode != $entry) {
continue;
}
// Special case for embedded activities
$objectType = ActivityUtils::childContent($objectEl, self::OBJECTTYPE, self::SPEC);
if (!empty($objectType) && $objectType == ActivityObject::ACTIVITY) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment