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

Commit 40cb66f

Browse files
Merge branch '3.4' into 4.2
* 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
2 parents 1289f7a + 24a4e2d commit 40cb66f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Core/Encoder/Argon2iPasswordEncoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public static function isSupported()
4747
return true;
4848
}
4949

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

5353
/**

0 commit comments

Comments
 (0)