Skip to content

Commit 0b3a898

Browse files
committed
Fixing openssl_encrypt
1 parent a0e1e30 commit 0b3a898

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/special_cases.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ function preg_replace($pattern, $replacement, $subject, int $limit = -1, int &$c
179179
* @throws OpensslException
180180
*
181181
*/
182-
function openssl_encrypt(string $data, string $method, string $key, int $options = 0, string $iv = "", string &$tag, string $aad = "", int $tag_length = 16): string
182+
function openssl_encrypt(string $data, string $method, string $key, int $options = 0, string $iv = "", string &$tag = "", string $aad = "", int $tag_length = 16): string
183183
{
184184
error_clear_last();
185185
// The $tag parameter is handled in a weird way by openssl_encrypt. It cannot be provided unless encoding is AEAD

0 commit comments

Comments
 (0)