Browse Source

don't try to parse non-xml in dfrn_deliver

pull/1/head
Friendika 12 years ago
parent
commit
a8cea3f30c
  1. 6
      include/items.php

6
include/items.php

@ -800,6 +800,12 @@ function dfrn_deliver($owner,$contact,$atom, $dissolve = false) {
if(! $xml)
return 3;
if(strpos($xml,'<?xml') === false) {
logger('dfrn_deliver: no valid XML returned');
logger('dfrn_deliver: returned XML: ' . $xml, LOGGER_DATA);
return 3;
}
$res = simplexml_load_string($xml);
if((intval($res->status) != 0) || (! strlen($res->challenge)) || (! strlen($res->dfrn_id)))

Loading…
Cancel
Save