From 46609d1b507402a25c906cc75431079f50747de1 Mon Sep 17 00:00:00 2001 From: the_systech Date: Mon, 1 Apr 2002 20:07:51 +0000 Subject: [PATCH] Ok so we shouldn't allow subject lines to be all whitespace either :) git-svn-id: file:///svn/phpbb/trunk@2460 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/posting.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/posting.php b/phpBB/posting.php index cd2dc81fef..2bdb201032 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -519,7 +519,7 @@ else if ( $submit || $confirm ) case 'newtopic': case 'reply': $username = ( !empty($HTTP_POST_VARS['username']) ) ? $HTTP_POST_VARS['username'] : ''; - $subject = ( !empty($HTTP_POST_VARS['subject']) ) ? $HTTP_POST_VARS['subject'] : ''; + $subject = ( !empty($HTTP_POST_VARS['subject']) ) ? trim($HTTP_POST_VARS['subject']) : ''; $message = ( !empty($HTTP_POST_VARS['message']) ) ? $HTTP_POST_VARS['message'] : ''; $poll_title = ( isset($HTTP_POST_VARS['poll_title']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_title'] : ''; $poll_options = ( isset($HTTP_POST_VARS['poll_option_text']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_option_text'] : ''; @@ -1082,4 +1082,4 @@ $template->pparse('body'); include($phpbb_root_path . 'includes/page_tail.'.$phpEx); -?> \ No newline at end of file +?>