Skip to content

Commit 7f4aa2e

Browse files
ENGCOM-3407: fix cipherMethod detection for openssl 1.1.1 #19104
- Merge Pull Request #19104 from BlackIkeEagle/magento2:openssl-1.1.1 - Merged commits: 1. 26dc0c3
2 parents 9186f4a + 26dc0c3 commit 7f4aa2e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/code/Magento/Analytics/Model/Cryptographer.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,12 @@ private function getInitializationVector()
129129
*/
130130
private function validateCipherMethod($cipherMethod)
131131
{
132-
$methods = openssl_get_cipher_methods();
132+
$methods = array_map(
133+
'strtolower',
134+
openssl_get_cipher_methods()
135+
);
136+
$cipherMethod = strtolower($cipherMethod);
137+
133138
return (false !== array_search($cipherMethod, $methods));
134139
}
135140
}

0 commit comments

Comments
 (0)