cleaning up code.

This commit is contained in:
Taylor Otwell
2012-02-19 22:56:59 -06:00
parent b262e743c0
commit ea358eb371

View File

@@ -141,7 +141,13 @@ class Crypter {
return substr($value, 0, $length - $pad); return substr($value, 0, $length - $pad);
} }
throw new \Exception("Decryption error. Padding is invalid."); // If the padding characters do not match the expected padding
// for the value we'll bomb out with an exception since the
// encrypted value seems to have been changed.
else
{
throw new \Exception("Decryption error. Padding is invalid.");
}
} }
return $value; return $value;