1
0
Fork 0

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
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ XML;
&& is_array($bodyDecoded['object']) && is_array($bodyDecoded['object'])
&& isset($bodyDecoded['object']['attributedTo']) && 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'); abort(400, 'Invalid request');
} }
} }