git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 588fe5d6 authored by Brion Vibber's avatar Brion Vibber

OStatus: debug aid - log the received Salmon post when it can't be parsed...

OStatus: debug aid - log the received Salmon post when it can't be parsed properly as an <atom:entry>
parent de093537
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment