aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-08-22 01:57:52 -0700
committerFriendika <info@friendika.com>2011-08-22 01:57:52 -0700
commit812222fb1757c046b80a7b8169d69626256098cf (patch)
treedde83fe7311f1e36721148066ee7db3781aece45
parent4ec706cfc7f469c8e1313d125d0fe2611276fe7c (diff)
downloadvolse-hubzilla-812222fb1757c046b80a7b8169d69626256098cf.tar.gz
volse-hubzilla-812222fb1757c046b80a7b8169d69626256098cf.tar.bz2
volse-hubzilla-812222fb1757c046b80a7b8169d69626256098cf.zip
correct the diaspora_like signable string format
-rw-r--r--include/diaspora.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/diaspora.php b/include/diaspora.php
index faededa6a..4113e9ce1 100644
--- a/include/diaspora.php
+++ b/include/diaspora.php
@@ -660,7 +660,7 @@ function diaspora_like($importer,$xml,$msg) {
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);
@@ -680,7 +680,7 @@ function diaspora_like($importer,$xml,$msg) {
if(! rsa_verify($author_signed_data,$author_signature,$key,'sha')) {
logger('diaspora_like: verification failed.');
-// return;
+ return;
}
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')) {
logger('diaspora_like: owner verification failed.');
-// return;
+ return;
}
}