We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 743de98 commit c80b1daCopy full SHA for c80b1da
Encrypter.php
@@ -206,9 +206,8 @@ protected function getJsonPayload($payload)
206
*/
207
protected function validPayload($payload)
208
{
209
- return is_array($payload) && isset(
210
- $payload['iv'], $payload['value'], $payload['mac']
211
- );
+ return is_array($payload) && isset($payload['iv'], $payload['value'], $payload['mac']) &&
+ strlen(base64_decode($payload['iv'], true)) === openssl_cipher_iv_length($this->cipher);
212
}
213
214
/**
0 commit comments