mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-22 21:40:08 +00:00
Fix length validation
This commit is contained in:
parent
dce1f64d94
commit
bc7f1d78df
@ -63,7 +63,7 @@ public function validateSend() {
|
||||
$this->parameters['enableHTML'] = false;
|
||||
|
||||
// validate text
|
||||
if (strlen($this->parameters['text']) > CHAT_MAX_LENGTH) throw new UserInputException('text', 'tooLong');
|
||||
if (StringUtil::length($this->parameters['text']) > CHAT_MAX_LENGTH) throw new UserInputException('text', 'tooLong');
|
||||
|
||||
// search for disallowed bbcodes
|
||||
$disallowedBBCodes = \wcf\system\bbcode\BBCodeParser::getInstance()->validateBBCodes($this->parameters['text'], explode(',', WCF::getSession()->getPermission('user.chat.allowedBBCodes')));
|
||||
|
Loading…
Reference in New Issue
Block a user