]> git.mxchange.org Git - friendica.git/commitdiff
Diaspora: Possibility to disable the checking of the signature of likes. This is...
authorMichael Vogel <icarus@dabo.de>
Wed, 9 Jul 2014 19:44:12 +0000 (21:44 +0200)
committerMichael Vogel <icarus@dabo.de>
Wed, 9 Jul 2014 19:44:12 +0000 (21:44 +0200)
include/diaspora.php

index 51e4a0bbf067afcf8dd2503e3622c8238ddb3805..6df7f4baf82510f9ef636e2ece4ed0bc6c2e297a 100755 (executable)
@@ -1868,8 +1868,12 @@ function diaspora_like($importer,$xml,$msg) {
                $parent_author_signature = base64_decode($parent_author_signature);
 
                if(! rsa_verify($signed_data,$parent_author_signature,$key,'sha256')) {
-                       logger('diaspora_like: top-level owner verification failed.');
-                       return;
+                       if (intval(get_config('system','ignore_diaspora_like_signature')))
+                               logger('diaspora_like: top-level owner verification failed. Proceeding anyway.');
+                       else {
+                               logger('diaspora_like: top-level owner verification failed.');
+                               return;
+                       }
                }
        }
        else {
@@ -1881,8 +1885,12 @@ function diaspora_like($importer,$xml,$msg) {
                $author_signature = base64_decode($author_signature);
 
                if(! rsa_verify($signed_data,$author_signature,$key,'sha256')) {
-                       logger('diaspora_like: like creator verification failed.');
-                       return;
+                       if (intval(get_config('system','ignore_diaspora_like_signature')))
+                               logger('diaspora_like: like creator verification failed. Proceeding anyway');
+                       else {
+                               logger('diaspora_like: like creator verification failed.');
+                               return;
+                       }
                }
        }