forked from GNUsocial/gnu-social
fix invalid separator in magic-public-key XRD and matching parsing.
This commit is contained in:
parent
06612e35e4
commit
512e511053
@ -59,7 +59,11 @@ class MagicEnvelope
|
||||
}
|
||||
if ($xrd->links) {
|
||||
if ($link = Discovery::getService($xrd->links, Magicsig::PUBLICKEYREL)) {
|
||||
list($type, $keypair) = explode(';', $link['href']);
|
||||
list($type, $keypair) = explode(',', $link['href']);
|
||||
if (empty($keypair)) {
|
||||
// Backwards compatibility check for separator bug in 0.9.0
|
||||
list($type, $keypair) = explode(';', $link['href']);
|
||||
}
|
||||
return $keypair;
|
||||
}
|
||||
}
|
||||
|
@ -91,7 +91,7 @@ class XrdAction extends Action
|
||||
}
|
||||
|
||||
$xrd->links[] = array('rel' => Magicsig::PUBLICKEYREL,
|
||||
'href' => 'data:application/magic-public-key;'. $magickey->toString(false));
|
||||
'href' => 'data:application/magic-public-key,'. $magickey->toString(false));
|
||||
|
||||
// TODO - finalize where the redirect should go on the publisher
|
||||
$url = common_local_url('ostatussub') . '?profile={uri}';
|
||||
|
Loading…
Reference in New Issue
Block a user