Commit 15414808 authored by Taylor Otwell's avatar Taylor Otwell

fix padding bug in crypter.

parent 60ad02ad
...@@ -138,7 +138,7 @@ class Crypter { ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment