X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2FScrape.php;h=85c636788910e94f3f3295a3f7b32e939b04acf3;hb=1478229abc6c5adc265559b5489cc2eb23358994;hp=b784650cd168722cb462d4031e1a9fb888b9e7a8;hpb=8af78079cbabe530554950ac241b24bbdcaf2cb7;p=friendica.git 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; } }