aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2006-03-21 23:40:37 +0000
committerDavid M <davidmj@users.sourceforge.net>2006-03-21 23:40:37 +0000
commit6950059475fc69cc0d0c73e913643420f9d46732 (patch)
treef914c23097d3f2d9c017ba5d9a283414605698a9
parent0818b471e6f4d518e2e6d04964105f3dec6e9c84 (diff)
downloadforums-6950059475fc69cc0d0c73e913643420f9d46732.tar
forums-6950059475fc69cc0d0c73e913643420f9d46732.tar.gz
forums-6950059475fc69cc0d0c73e913643420f9d46732.tar.bz2
forums-6950059475fc69cc0d0c73e913643420f9d46732.tar.xz
forums-6950059475fc69cc0d0c73e913643420f9d46732.zip
- Bug 1100
git-svn-id: file:///svn/phpbb/trunk@5682 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/includes/message_parser.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/message_parser.php b/phpBB/includes/message_parser.php
index f5386f1fd7..09b02ca7f0 100644
--- a/phpBB/includes/message_parser.php
+++ b/phpBB/includes/message_parser.php
@@ -760,12 +760,12 @@ class parse_message extends bbcode_firstpass
$replace = array("\n", '', "\n\n", "\\1&#058;");
$this->message = preg_replace($match, $replace, trim($this->message));
- // Message length check. -1 disables this check completely, even allows empty messsages.
+ // Message length check. -1 disables this check completely.
if ($config['max_' . $mode . '_chars'] != -1)
{
$msg_len = ($mode == 'post') ? strlen($this->message) : strlen(preg_replace('#\[\/?[a-z\*\+\-]+(=[\S]+)?\]#is', ' ', $this->message));
- if (!$msg_len || ($config['max_' . $mode . '_chars'] && $msg_len > $config['max_' . $mode . '_chars']))
+ if ($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'];
return $this->warn_msg;