aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthe_systech <the_systech@users.sourceforge.net>2002-04-01 20:07:51 +0000
committerthe_systech <the_systech@users.sourceforge.net>2002-04-01 20:07:51 +0000
commit46609d1b507402a25c906cc75431079f50747de1 (patch)
treea99f20c2e71f6b38b8471c435d59640524a0c23f
parent1ba7e42beac2bd2a6e47cc34d131825e3fced0fb (diff)
downloadforums-46609d1b507402a25c906cc75431079f50747de1.tar
forums-46609d1b507402a25c906cc75431079f50747de1.tar.gz
forums-46609d1b507402a25c906cc75431079f50747de1.tar.bz2
forums-46609d1b507402a25c906cc75431079f50747de1.tar.xz
forums-46609d1b507402a25c906cc75431079f50747de1.zip
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
-rw-r--r--phpBB/posting.php4
1 files 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
+?>