has moved to IP address -- please double check where you are logging in.

Commit 149fa14b authored by Evan Prodromou's avatar Evan Prodromou

not correctly checking results of XML-RPC request

parent 2e3f228b
......@@ -50,7 +50,15 @@ function ping_broadcast_notice($notice) {
"User-Agent: Laconica/".LACONICA_VERSION."\r\n",
'content' => $req)));
$file = file_get_contents($notify_url, false, $context);
if ($file === false || mb_strlen($file) == 0) {
"XML-RPC empty results for ping ($notify_url, $notice->id) ");
$response = xmlrpc_decode($file);
if (xmlrpc_is_fault($response)) {
"XML-RPC error for ping ($notify_url, $notice->id) ".
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