Skip to content

Commit

Permalink
fix maxCharsPerPost
Browse files Browse the repository at this point in the history
  • Loading branch information
skywalker512 committed Jun 17, 2018
1 parent 90e9c32 commit b3f09de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/models/ETPostModel.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}

Expand Down

0 comments on commit b3f09de

Please sign in to comment.