This commit is contained in:
divinity76 2025-03-17 09:41:33 +01:00 committed by GitHub
commit 83b4a2f649
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -334,7 +334,7 @@ if ($use_auth) {
if (PHP_MAJOR_VERSION >= 8) {
return str_starts_with($haystack, $needle);
}
return strlen($needle) <= strlen($haystack) && 0 === substr_compare($haystack, $needle, 0);
return 0 === substr_compare($haystack, $needle, 0, strlen($needle));
};
$needles = array(
'$1$', // CRYPT_MD5,