diff --git a/core/models/ETPostModel.class.php b/core/models/ETPostModel.class.php index fac7a46..7e448f5 100644 --- a/core/models/ETPostModel.class.php +++ b/core/models/ETPostModel.class.php @@ -368,7 +368,7 @@ public function validateContent($content) $content = trim($content); // Make sure it's not too long but has at least one character. - if (strlen($content) > C("esoTalk.conversation.maxCharsPerPost")) return sprintf(T("message.postTooLong"), C("esoTalk.conversation.maxCharsPerPost")); + if (mb_strlen($content) > C("esoTalk.conversation.maxCharsPerPost")) return sprintf(T("message.postTooLong"), C("esoTalk.conversation.maxCharsPerPost")); if (!strlen($content)) return "emptyPost"; }