OStatus: debug aid - log the received Salmon post when it can't be parsed properly as an <atom:entry>

This commit is contained in:
Brion Vibber 2010-02-21 10:48:48 -08:00
parent de093537f6
commit 588fe5d603
1 changed files with 1 additions and 0 deletions

View File

@ -51,6 +51,7 @@ class SalmonAction extends Action
if ($dom->documentElement->namespaceURI != Activity::ATOM ||
$dom->documentElement->localName != 'entry') {
common_log(LOG_DEBUG, "Got invalid Salmon post: $xml");
$this->clientError(_m('Salmon post must be an Atom entry.'));
}
// XXX: check the signature