Browse Source

fix padding bug in crypter.

Taylor Otwell 11 years ago
parent
commit
15414808a1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      laravel/crypter.php

+ 1 - 1
laravel/crypter.php

@@ -138,7 +138,7 @@ class Crypter {
 			$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