Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
Merge branch '3.4' into 4.2
Browse files Browse the repository at this point in the history
* 3.4:
  [Security/Core] work around sodium_compat issue
  bumped Symfony version to 3.4.30
  updated VERSION for 3.4.29
  update CONTRIBUTORS for 3.4.29
  updated CHANGELOG for 3.4.29
  • Loading branch information
nicolas-grekas committed Jun 26, 2019
2 parents 1289f7a + 24a4e2d commit 40cb66f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/Encoder/Argon2iPasswordEncoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static function isSupported()
return true;
}

return \function_exists('sodium_crypto_pwhash_str') || \extension_loaded('libsodium');
return version_compare(\extension_loaded('sodium') ? \SODIUM_LIBRARY_VERSION : phpversion('libsodium'), '1.0.9', '>=');
}

/**
Expand Down

0 comments on commit 40cb66f

Please sign in to comment.