No XSS
This commit is contained in:
parent
6943eee623
commit
42bfb78184
@ -144,7 +144,7 @@ ToSelector::fillActivity($this, $act, $options);
|
||||
|
||||
$actobj = new ActivityObject();
|
||||
$actobj->type = ActivityObject::NOTE;
|
||||
$actobj->content = $content; //common_render_content($content, $actor_profile, $inReplyTo);
|
||||
$actobj->content = strip_tags($content,'<p><b><i><u><a><ul><ol><li>');
|
||||
|
||||
// Finally add the activity object to our activity
|
||||
$act->objects[] = $actobj;
|
||||
|
@ -36,7 +36,7 @@ try {
|
||||
ActivityPubReturn::error("Invalid Object specified.");
|
||||
}
|
||||
Fave::addNew($actor_profile, $object_notice);
|
||||
ActivityPubReturn::answer(Activitypub_like::like_to_array($data->actor, $object_notice));
|
||||
ActivityPubReturn::answer(Activitypub_like::like_to_array($data->actor, $data->object));
|
||||
} catch (Exception $e) {
|
||||
ActivityPubReturn::error($e->getMessage(), 403);
|
||||
}
|
||||
|
Reference in New Issue
Block a user