diff options
author | James Walker <walkah@walkah.net> | 2010-02-25 09:39:16 -0500 |
---|---|---|
committer | James Walker <walkah@walkah.net> | 2010-02-25 17:09:54 -0500 |
commit | e62e49ed3be08e30ab5ea6a5a46e1f90d4715182 (patch) | |
tree | 101ace347b2eeb2b2394750661edd105fb20eae5 /plugins/OStatus/lib/magicenvelope.php | |
parent | bac959ad46e6e04bce8c29f8a24e198e62bf5616 (diff) |
adding some exception handling for magicenv parsing
Diffstat (limited to 'plugins/OStatus/lib/magicenvelope.php')
-rw-r--r-- | plugins/OStatus/lib/magicenvelope.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/OStatus/lib/magicenvelope.php b/plugins/OStatus/lib/magicenvelope.php index 81f4609c5..4a9efe93d 100644 --- a/plugins/OStatus/lib/magicenvelope.php +++ b/plugins/OStatus/lib/magicenvelope.php @@ -59,7 +59,7 @@ class MagicEnvelope $signer_uri = $this->normalizeUser($signer_uri); if (!$this->checkAuthor($text, $signer_uri)) { - return false; + throw new Exception("Unable to determine entry author."); } $signature_alg = Magicsig::fromString($this->getKeyPair($signer_uri)); |