aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Comments
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-01-17 12:03:27 +0100
committerVitor Mattos <vitor@php.rio>2022-01-21 08:39:40 -0300
commite0b89cd576a4e3ce6811807e0c02273097bfac79 (patch)
tree9dcc5efa8df4c986b78fcecce34deb05252cddf1 /lib/private/Comments
parentd850dc02207769ef13897867a11083e420f115c4 (diff)
downloadnextcloud-server-e0b89cd576a4e3ce6811807e0c02273097bfac79.tar.gz
nextcloud-server-e0b89cd576a4e3ce6811807e0c02273097bfac79.zip
Only check mb_strlen()
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Comments')
-rw-r--r--lib/private/Comments/Manager.php2
1 files changed, 1 insertions, 1 deletions
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');
}