fix padding bug in crypter.

This commit is contained in:
Taylor Otwell 2013-03-28 15:50:25 -05:00
parent 60ad02ad01
commit 15414808a1
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ protected static function unpad($value)
$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