diff --git a/src/Utility/Security.php b/src/Utility/Security.php index 2d8d244203d..42bd274e80f 100644 --- a/src/Utility/Security.php +++ b/src/Utility/Security.php @@ -248,8 +248,8 @@ protected static function _constantEquals($hmac, $compare) if (function_exists('hash_equals')) { return hash_equals($hmac, $compare); } - $hashLength = mb_strlen($hmac, '8bit'); - $compareLength = mb_strlen($compare, '8bit'); + $hashLength = strlen($hmac); + $compareLength = strlen($compare); if ($hashLength !== $compareLength) { return false; }