From 787587015dafeda38b4b981a6a6444e30f8d013a Mon Sep 17 00:00:00 2001 From: Maxim Leshchenko Date: Wed, 24 Nov 2021 22:47:32 +0200 Subject: [PATCH] Groups: Fix calculation of length of admin comment --- Web/Presenters/GroupPresenter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Web/Presenters/GroupPresenter.php b/Web/Presenters/GroupPresenter.php index de55c569..648a3b21 100644 --- a/Web/Presenters/GroupPresenter.php +++ b/Web/Presenters/GroupPresenter.php @@ -158,8 +158,8 @@ final class GroupPresenter extends OpenVKPresenter $this->flashFail("succ", "Операция успешна", "Комментарий к администратору удален"); } elseif($comment) { - if(strlen($comment) > 36) { - $commentLength = (string) strlen($comment); + if(mb_strlen($comment) > 36) { + $commentLength = (string) mb_strlen($comment); $this->flashFail("err", "Ошибка", "Комментарий слишком длинный ($commentLength символов вместо 36 символов)"); return; }