diff options
Diffstat (limited to 'phpBB/includes/message_parser.php')
| -rw-r--r-- | phpBB/includes/message_parser.php | 24 | 
1 files changed, 17 insertions, 7 deletions
| diff --git a/phpBB/includes/message_parser.php b/phpBB/includes/message_parser.php index 901bafbb2e..6d3907880e 100644 --- a/phpBB/includes/message_parser.php +++ b/phpBB/includes/message_parser.php @@ -1,9 +1,13 @@  <?php  /**  * -* @package phpBB3 -* @copyright (c) 2005 phpBB Group -* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 +* This file is part of the phpBB Forum Software package. +* +* @copyright (c) phpBB Limited <https://www.phpbb.com> +* @license GNU General Public License, version 2 (GPL-2.0) +* +* For full copyright and license information, please see +* the docs/CREDITS.txt file.  *  */ @@ -23,7 +27,6 @@ if (!class_exists('bbcode'))  /**  * BBCODE FIRSTPASS  * BBCODE first pass class (functions for parsing messages for db storage) -* @package phpBB3  */  class bbcode_firstpass extends bbcode  { @@ -776,8 +779,16 @@ class bbcode_firstpass extends bbcode  					// the buffer holds a valid opening tag  					if ($config['max_quote_depth'] && sizeof($close_tags) >= $config['max_quote_depth'])  					{ -						// there are too many nested quotes -						$error_ary['quote_depth'] = $user->lang('QUOTE_DEPTH_EXCEEDED', (int) $config['max_quote_depth']); +						if ($config['max_quote_depth'] == 1) +						{ +							// Depth 1 - no nesting is allowed +							$error_ary['quote_depth'] = $user->lang('QUOTE_NO_NESTING'); +						} +						else +						{ +							// There are too many nested quotes +							$error_ary['quote_depth'] = $user->lang('QUOTE_DEPTH_EXCEEDED', (int) $config['max_quote_depth']); +						}  						$out .= $buffer . $tok;  						$tok = '[]'; @@ -1049,7 +1060,6 @@ class bbcode_firstpass extends bbcode  /**  * Main message parser for posting, pm, etc. takes raw message  * and parses it for attachments, bbcode and smilies -* @package phpBB3  */  class parse_message extends bbcode_firstpass  { | 
