]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
syntax fix (throw _new_ *Exception)
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 30 Apr 2017 07:33:06 +0000 (09:33 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 30 Apr 2017 07:33:06 +0000 (09:33 +0200)
plugins/OStatus/classes/FeedSub.php

index 40d2ef99a9b42c98329c9656bc44517f19e97c32..dc80105d86cbe374c4eee6dd2a771fdf65917c5b 100644 (file)
@@ -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;