8000 [Security/Core] work around sodium_compat issue · symfony/symfony@df50685 · GitHub
[go: up one dir, main page]

Skip to content

Commit df50685

Browse files
[Security/Core] work around sodium_compat issue
1 parent fe5a4ee commit df50685

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Security/Core/Encoder/Argon2iPasswordEncoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static function isSupported()
2626
return true;
2727
}
2828

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

3232
/**

0 commit comments

Comments
 (0)
0