From a1eb5f3be6bf22989826f8f659213ac4a651222f Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Fri, 26 May 2023 18:48:15 +0200 Subject: [PATCH] Fixes ACCOUNTS-6A. Force value to string for client token validation --- api/modules/authserver/validators/ClientTokenValidator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/modules/authserver/validators/ClientTokenValidator.php b/api/modules/authserver/validators/ClientTokenValidator.php index 49c1380..88ed719 100644 --- a/api/modules/authserver/validators/ClientTokenValidator.php +++ b/api/modules/authserver/validators/ClientTokenValidator.php @@ -18,7 +18,7 @@ class ClientTokenValidator extends Validator { * @throws \api\modules\authserver\exceptions\AuthserverException */ protected function validateValue($value): ?array { - if (mb_strlen($value) > 255) { + if (mb_strlen((string)$value) > 255) { throw new IllegalArgumentException('clientToken is too long.'); }