partial fix for D* public key format change
This commit is contained in:
parent
3a601ff66f
commit
aaadabf7d2
1 changed files with 4 additions and 1 deletions
|
@ -394,7 +394,10 @@ function probe_url($url, $mode = PROBE_NORMAL) {
|
||||||
}
|
}
|
||||||
if($link['@attributes']['rel'] === 'diaspora-public-key') {
|
if($link['@attributes']['rel'] === 'diaspora-public-key') {
|
||||||
$diaspora_key = base64_decode(unamp($link['@attributes']['href']));
|
$diaspora_key = base64_decode(unamp($link['@attributes']['href']));
|
||||||
|
if(strstr($diaspora_key,'RSA '))
|
||||||
$pubkey = rsatopem($diaspora_key);
|
$pubkey = rsatopem($diaspora_key);
|
||||||
|
else
|
||||||
|
$pubkey = $diaspora_key;
|
||||||
$diaspora = true;
|
$diaspora = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue