mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
Only check mb_strlen()
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
d850dc0220
commit
e0b89cd576
1 changed files with 1 additions and 1 deletions
|
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue