aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Comments
diff options
context:
space:
mode:
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');
}