]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/LDSignature.php
Fixed max value check, improved request value fetching
[friendica.git] / src / Util / LDSignature.php
index b2b6c90db25d2f148015a62e5a3ab4bced4ac94d..b5a55ea3596f8b43dcaebca876c45bf028a30fa3 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -57,7 +57,7 @@ class LDSignature
                $dhash = self::hash(self::signableData($data));
 
                $x = Crypto::rsaVerify($ohash . $dhash, base64_decode($data['signature']['signatureValue']), $pubkey);
-               Logger::log('LD-verify: ' . intval($x));
+               Logger::notice('LD-verify', ['verified' => (int)$x, 'actor' => $profile['url']]);
 
                if (empty($x)) {
                        return false;