Fixed regression in OStatus sub from WebFinger/XML_XRD update
XML_XRD::getAll requires arguments (at least relation). If one really want all links, just get the 'links' array. It's public! Also, not all XML_XRD_Element_Link were migrated from the previous array style.
This commit is contained in:
@@ -59,12 +59,12 @@ class MagicEnvelope
|
||||
$link = $xrd->get(Magicsig::PUBLICKEYREL);
|
||||
if (!is_null($link)) {
|
||||
$keypair = false;
|
||||
$parts = explode(',', $link['href']);
|
||||
$parts = explode(',', $link->href);
|
||||
if (count($parts) == 2) {
|
||||
$keypair = $parts[1];
|
||||
} else {
|
||||
// Backwards compatibility check for separator bug in 0.9.0
|
||||
$parts = explode(';', $link['href']);
|
||||
$parts = explode(';', $link->href);
|
||||
if (count($parts) == 2) {
|
||||
$keypair = $parts[1];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user