mirror of
https://github.com/friendica/friendica
synced 2025-04-26 07:50:15 +00:00
Reworked check for double encoded Diaspora signatures
This commit is contained in:
parent
7e83ba090f
commit
98ccefebcf
2 changed files with 8 additions and 4 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue