Skip to content

Commit

Permalink
ENGCOM-3407: fix cipherMethod detection for openssl 1.1.1 #19104
Browse files Browse the repository at this point in the history
  • Loading branch information
sidolov authored Dec 20, 2018
2 parents defde24 + 7f4aa2e commit 19fd585
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/code/Magento/Analytics/Model/Cryptographer.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,12 @@ private function getInitializationVector()
*/
private function validateCipherMethod($cipherMethod)
{
$methods = openssl_get_cipher_methods();
$methods = array_map(
'strtolower',
openssl_get_cipher_methods()
);
$cipherMethod = strtolower($cipherMethod);

return (false !== array_search($cipherMethod, $methods));
}
}

0 comments on commit 19fd585

Please sign in to comment.