From 15414808a12cd67a2676f70f220b68360e8d7e97 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 28 Mar 2013 15:50:25 -0500 Subject: [PATCH] fix padding bug in crypter. --- laravel/crypter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laravel/crypter.php b/laravel/crypter.php index 18dd51bd..5cbf1101 100644 --- a/laravel/crypter.php +++ b/laravel/crypter.php @@ -138,7 +138,7 @@ protected static function unpad($value) $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 // it and return the value. Otherwise, we'll throw an exception