From 5ac4556ef18b87a040515bc33b5863af0f2e4795 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sun, 19 Dec 2004 17:59:15 +0000 Subject: - some fixes/changes git-svn-id: file:///svn/phpbb/trunk@5035 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/message_parser.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'phpBB/includes/message_parser.php') diff --git a/phpBB/includes/message_parser.php b/phpBB/includes/message_parser.php index 02e8d685f3..00c57c81e6 100644 --- a/phpBB/includes/message_parser.php +++ b/phpBB/includes/message_parser.php @@ -11,13 +11,6 @@ // // ------------------------------------------------------------- -/* - TODO list for M-3: - - add other languages to syntax highlighter - - better (and unified, wrt other pages such as registration) validation for urls, emails, etc... - - need size limit checks on img/flash tags ... probably warrants some discussion -*/ - if (!defined('IN_PHPBB')) { exit; @@ -718,6 +711,7 @@ class parse_message extends bbcode_firstpass if ($config['max_' . $mode . '_urls'] && $num_urls > $config['max_' . $mode . '_urls']) { $this->warn_msg[] = sprintf($user->lang['TOO_MANY_URLS'], $config['max_' . $mode . '_urls']); + return $this->warn_msg; } if (!$update_this_message) @@ -729,7 +723,6 @@ class parse_message extends bbcode_firstpass $this->message_status = 'parsed'; return; - //return implode('
', $this->warn_msg); } // Formatting text for display -- cgit v1.2.1