]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
*cough* don't commit the code that breaks your code that you used to test the debug...
authorBrion Vibber <brion@pobox.com>
Mon, 20 Dec 2010 21:06:58 +0000 (13:06 -0800)
committerBrion Vibber <brion@pobox.com>
Mon, 20 Dec 2010 21:06:58 +0000 (13:06 -0800)
plugins/OStatus/classes/FeedSub.php

index 97245203d5c6f2760d4cb6b1bdeca12431c4274b..7756f6a234325a5a50e751ce65c4c168bc7cdd7f 100644 (file)
@@ -483,7 +483,7 @@ class FeedSub extends Memcached_DataObject
         if ($this->secret) {
             if (preg_match('/^sha1=([0-9a-fA-F]{40})$/', $hmac, $matches)) {
                 $their_hmac = strtolower($matches[1]);
-                $our_hmac = hash_hmac('sha1', $post, $this->secret) . 'x';
+                $our_hmac = hash_hmac('sha1', $post, $this->secret);
                 if ($their_hmac === $our_hmac) {
                     return true;
                 }