cleaning up code.
This commit is contained in:
@@ -141,7 +141,13 @@ class Crypter {
|
||||
return substr($value, 0, $length - $pad);
|
||||
}
|
||||
|
||||
throw new \Exception("Decryption error. Padding is invalid.");
|
||||
// If the padding characters do not match the expected padding
|
||||
// for the value we'll bomb out with an exception since the
|
||||
// encrypted value seems to have been changed.
|
||||
else
|
||||
{
|
||||
throw new \Exception("Decryption error. Padding is invalid.");
|
||||
}
|
||||
}
|
||||
|
||||
return $value;
|
||||
|
||||
Reference in New Issue
Block a user