Reworked check for double encoded Diaspora signatures

This commit is contained in:
Michael Vogel 2016-01-20 16:00:43 +01:00
parent 7e83ba090f
commit 98ccefebcf
2 changed files with 8 additions and 4 deletions

View file

@ -2911,10 +2911,6 @@ function diaspora_send_relay($item,$owner,$contact,$public_batch = false) {
$authorsig = $orig_sign['signature'];
$handle = $orig_sign['signer'];
// Friendica servers lower than 3.5 had double encoded the signature ...
if (substr($authorsig, -1, 1) != "=")
$authorsig = base64_decode($authorsig);
// Split the signed text
$signed_parts = explode(";", $signed_text);