mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-24 07:08:40 +00:00
Security fixes. Switching from mcrypt soon
This commit is contained in:
parent
e3e7e2e6c7
commit
232244b981
|
|
@ -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 <d.eichhorn@oms.com>
|
||||
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user