*cough* don't commit the code that breaks your code that you used to test the debug code :D

This commit is contained in:
Brion Vibber 2010-12-20 13:06:58 -08:00
parent a4e2f38356
commit 46123e3754

View File

@ -483,7 +483,7 @@ class FeedSub extends Memcached_DataObject
if ($this->secret) { if ($this->secret) {
if (preg_match('/^sha1=([0-9a-fA-F]{40})$/', $hmac, $matches)) { if (preg_match('/^sha1=([0-9a-fA-F]{40})$/', $hmac, $matches)) {
$their_hmac = strtolower($matches[1]); $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) { if ($their_hmac === $our_hmac) {
return true; return true;
} }