mirror of
https://github.com/friendica/friendica
synced 2024-12-23 16:40:17 +00:00
correct the diaspora_like signable string format
This commit is contained in:
parent
4ec706cfc7
commit
812222fb17
1 changed files with 3 additions and 3 deletions
|
@ -660,7 +660,7 @@ function diaspora_like($importer,$xml,$msg) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$author_signed_data = $guid . ';' . $parent_guid . ';' . $target_type . ';' . $positive . ';' . $diaspora_handle;
|
$author_signed_data = $guid . ';' . $target_type . ';' . $parent_guid . ';' . $positive . ';' . $diaspora_handle;
|
||||||
|
|
||||||
$author_signature = base64_decode($author_signature);
|
$author_signature = base64_decode($author_signature);
|
||||||
|
|
||||||
|
@ -680,7 +680,7 @@ function diaspora_like($importer,$xml,$msg) {
|
||||||
|
|
||||||
if(! rsa_verify($author_signed_data,$author_signature,$key,'sha')) {
|
if(! rsa_verify($author_signed_data,$author_signature,$key,'sha')) {
|
||||||
logger('diaspora_like: verification failed.');
|
logger('diaspora_like: verification failed.');
|
||||||
// return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($parent_author_signature) {
|
if($parent_author_signature) {
|
||||||
|
@ -692,7 +692,7 @@ function diaspora_like($importer,$xml,$msg) {
|
||||||
|
|
||||||
if(! rsa_verify($owner_signed_data,$parent_author_signature,$key,'sha')) {
|
if(! rsa_verify($owner_signed_data,$parent_author_signature,$key,'sha')) {
|
||||||
logger('diaspora_like: owner verification failed.');
|
logger('diaspora_like: owner verification failed.');
|
||||||
// return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue