better handling of troublesome feeds.
This commit is contained in:
parent
178362e50b
commit
793967a1d3
7 changed files with 62 additions and 27 deletions
|
|
@ -240,7 +240,7 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
|
|||
notice( t('Unexpected response from remote site: ') . EOL . $leading_junk . EOL );
|
||||
}
|
||||
|
||||
$xml = simplexml_load_string($res);
|
||||
$xml = parse_xml_string($res);
|
||||
$status = (int) $xml->status;
|
||||
$message = unxmlify($xml->message); // human readable text of what may have gone wrong.
|
||||
switch($status) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue