OStatus: debug aid - log the received Salmon post when it can't be parsed properly as an <atom:entry>
This commit is contained in:
parent
de093537f6
commit
588fe5d603
@ -51,6 +51,7 @@ class SalmonAction extends Action
|
|||||||
|
|
||||||
if ($dom->documentElement->namespaceURI != Activity::ATOM ||
|
if ($dom->documentElement->namespaceURI != Activity::ATOM ||
|
||||||
$dom->documentElement->localName != 'entry') {
|
$dom->documentElement->localName != 'entry') {
|
||||||
|
common_log(LOG_DEBUG, "Got invalid Salmon post: $xml");
|
||||||
$this->clientError(_m('Salmon post must be an Atom entry.'));
|
$this->clientError(_m('Salmon post must be an Atom entry.'));
|
||||||
}
|
}
|
||||||
// XXX: check the signature
|
// XXX: check the signature
|
||||||
|
Loading…
Reference in New Issue
Block a user