From: friendica Date: Tue, 14 Aug 2012 09:20:48 +0000 (-0700) Subject: partial fix for D* public key format change X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=aaadabf7d217b6ff3ae3510460751ff7ce708cb4;p=friendica.git partial fix for D* public key format change --- diff --git a/include/Scrape.php b/include/Scrape.php index b784650cd1..85c6367889 100644 --- a/include/Scrape.php +++ b/include/Scrape.php @@ -394,7 +394,10 @@ function probe_url($url, $mode = PROBE_NORMAL) { } if($link['@attributes']['rel'] === 'diaspora-public-key') { $diaspora_key = base64_decode(unamp($link['@attributes']['href'])); - $pubkey = rsatopem($diaspora_key); + if(strstr($diaspora_key,'RSA ')) + $pubkey = rsatopem($diaspora_key); + else + $pubkey = $diaspora_key; $diaspora = true; } }