Trim an exception message in the crypter.
This commit is contained in:
parent
9c6d4871b2
commit
d392365a1b
|
@ -62,7 +62,7 @@ public static function decrypt($value)
|
||||||
{
|
{
|
||||||
if (($value = base64_decode($value)) === false)
|
if (($value = base64_decode($value)) === false)
|
||||||
{
|
{
|
||||||
throw new \InvalidArgumentException('Decryption error. Input value is not valid base64 data.');
|
throw new \InvalidArgumentException('Input value is not valid base64 data.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$iv = substr($value, 0, static::iv_size());
|
$iv = substr($value, 0, static::iv_size());
|
||||||
|
|
Loading…
Reference in New Issue