Update FederationController

This commit is contained in:
Daniel Supernault 2018-12-25 18:07:32 -07:00
parent fedcdb204d
commit eaaf8fbcd7
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -195,7 +195,7 @@ XML;
&& is_array($bodyDecoded['object'])
&& isset($bodyDecoded['object']['attributedTo'])
) {
if(parse_url($bodyDecoded['object']['attributedTo'], PHP_URL_HOST) !== $idDomain) {
if(parse_url($bodyDecoded['object']['attributedTo'], PHP_URL_HOST) !== $keyDomain) {
abort(400, 'Invalid request');
}
}