fix padding bug in crypter.
This commit is contained in:
@@ -138,7 +138,7 @@ class Crypter {
|
|||||||
$pad = ord(substr($value, -1));
|
$pad = ord(substr($value, -1));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($pad and $pad < static::$block)
|
if ($pad and $pad <= static::$block)
|
||||||
{
|
{
|
||||||
// If the correct padding is present on the string, we will remove
|
// If the correct padding is present on the string, we will remove
|
||||||
// it and return the value. Otherwise, we'll throw an exception
|
// it and return the value. Otherwise, we'll throw an exception
|
||||||
|
|||||||
Reference in New Issue
Block a user