From e21043e81c7cfeeb1eae98e32da07bf18c66c44a Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sun, 30 Apr 2017 09:33:06 +0200 Subject: [PATCH] syntax fix (throw _new_ *Exception) --- plugins/OStatus/classes/FeedSub.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/OStatus/classes/FeedSub.php b/plugins/OStatus/classes/FeedSub.php index 40d2ef99a9..dc80105d86 100644 --- a/plugins/OStatus/classes/FeedSub.php +++ b/plugins/OStatus/classes/FeedSub.php @@ -612,7 +612,7 @@ class FeedSub extends Managed_DataObject $our_hmac = hash_hmac($hash_algo, $post, $this->secret); if ($their_hmac !== $our_hmac) { common_log(LOG_ERR, sprintf(__METHOD__.': ignoring PuSH with bad HMAC hash: got %s, expected %s for feed %s from hub %s', _ve($their_hmac), _ve($our_hmac), _ve($this->getUri()), _ve($this->huburi))); - throw FeedSubBadPushSignatureException('Incoming PuSH signature did not match expected HMAC hash.'); + throw new FeedSubBadPushSignatureException('Incoming PuSH signature did not match expected HMAC hash.'); } return true;