From e0b89cd576a4e3ce6811807e0c02273097bfac79 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 17 Jan 2022 12:03:27 +0100 Subject: [PATCH] Only check mb_strlen() Signed-off-by: Joas Schilling --- lib/private/Comments/Manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Comments/Manager.php b/lib/private/Comments/Manager.php index a4afffe2cd4..84e1a6a3cb4 100644 --- a/lib/private/Comments/Manager.php +++ b/lib/private/Comments/Manager.php @@ -148,7 +148,7 @@ class Manager implements ICommentsManager { throw new \UnexpectedValueException('Actor, Object and Verb information must be provided for saving'); } - if ($comment->getVerb() === 'reaction' && strlen($comment->getMessage()) > 8) { + if ($comment->getVerb() === 'reaction' && mb_strlen($comment->getMessage()) > 8) { throw new \UnexpectedValueException('Reactions cannot be longer than 8 bytes'); }