From 232244b981a9e8653a3d3f9ffc5a06684036a546 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 27 Mar 2016 22:06:18 +0200 Subject: [PATCH] Security fixes. Switching from mcrypt soon --- Security/Encryption/Encryption.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Security/Encryption/Encryption.php b/Security/Encryption/Encryption.php index f334fc683..cd95984ee 100644 --- a/Security/Encryption/Encryption.php +++ b/Security/Encryption/Encryption.php @@ -415,7 +415,7 @@ class Encryption * @param string $value Value to decrypt * @param string $iv Input vector * - * @return string|false + * @return string * * @since 1.0.0 * @author Dennis Eichhorn @@ -425,7 +425,7 @@ class Encryption try { return mcrypt_decrypt($this->cipher, $this->key, $value, $this->mode, $iv); } catch (\Exception $e) { - return false; + throw new \Exception(); } } }