mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
- Fixed my fix :D
git-svn-id: file:///svn/phpbb/trunk@5683 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
6950059475
commit
c5a7c26693
1 changed files with 1 additions and 1 deletions
|
@ -765,7 +765,7 @@ class parse_message extends bbcode_firstpass
|
||||||
{
|
{
|
||||||
$msg_len = ($mode == 'post') ? strlen($this->message) : strlen(preg_replace('#\[\/?[a-z\*\+\-]+(=[\S]+)?\]#is', ' ', $this->message));
|
$msg_len = ($mode == 'post') ? strlen($this->message) : strlen(preg_replace('#\[\/?[a-z\*\+\-]+(=[\S]+)?\]#is', ' ', $this->message));
|
||||||
|
|
||||||
if ($config['max_' . $mode . '_chars'] && $msg_len > $config['max_' . $mode . '_chars'])
|
if ((!$msg_len && $mode !== 'sig') || $config['max_' . $mode . '_chars'] && $msg_len > $config['max_' . $mode . '_chars'])
|
||||||
{
|
{
|
||||||
$this->warn_msg[] = (!$msg_len) ? $user->lang['TOO_FEW_CHARS'] : $user->lang['TOO_MANY_CHARS'];
|
$this->warn_msg[] = (!$msg_len) ? $user->lang['TOO_FEW_CHARS'] : $user->lang['TOO_MANY_CHARS'];
|
||||||
return $this->warn_msg;
|
return $this->warn_msg;
|
||||||
|
|
Loading…
Add table
Reference in a new issue