aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2003-01-29 23:21:50 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2003-01-29 23:21:50 +0000
commit238679ad714387aa4d789c60add6e562b363f4ad (patch)
treece1552960eba76f5823cbca941be3d2b3952a39b
parentdd1187b6c6da4a5c4288f6f8b52ba2e69e9a439f (diff)
downloadforums-238679ad714387aa4d789c60add6e562b363f4ad.tar
forums-238679ad714387aa4d789c60add6e562b363f4ad.tar.gz
forums-238679ad714387aa4d789c60add6e562b363f4ad.tar.bz2
forums-238679ad714387aa4d789c60add6e562b363f4ad.tar.xz
forums-238679ad714387aa4d789c60add6e562b363f4ad.zip
other "oversights"
git-svn-id: file:///svn/phpbb/trunk@3408 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/posting.php38
1 files changed, 19 insertions, 19 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 740e935ef4..6ca0cd156f 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -210,21 +210,21 @@ if (isset($_REQUEST['post']))
$search = new fulltext_search();
// Grab relevant submitted data
- $message = (!empty($_REQUEST['message'])) ? $_REQUEST['message'] : '';
- $subject = (!empty($_REQUEST['subject'])) ? $_REQUEST['subject'] : '';
- $username = (!empty($_REQUEST['username'])) ? $_REQUEST['username'] : '';
- $topic_type = (!empty($_REQUEST['topic_type'])) ? intval($_REQUEST['topic_type']) : '';
- $icon_id = (!empty($_REQUEST['icon'])) ? intval($_REQUEST['icon']) : 1;
-
- $enable_html = (!intval($config['allow_html'])) ? 0 : ((!empty($_REQUEST['disable_html'])) ? 0 : 1);
- $enable_bbcode = (!intval($config['allow_bbcode'])) ? 0 : ((!empty($_REQUEST['disable_bbcode'])) ? 0 : 1);
- $enable_smilies = (!intval($config['allow_smilies'])) ? 0 : ((!empty($_REQUEST['disable_smilies'])) ? 0 : 1);
- $enable_urls = (!empty($_REQUEST['disable_magic_url'])) ? 0 : 1;
- $enable_sig = (empty($_REQUEST['attach_sig'])) ? 1 : 0;
-
- $poll_subject = (!empty($_REQUEST['poll_subject'])) ? $_REQUEST['poll_subject'] : '';
- $poll_length = (!empty($_REQUEST['poll_length'])) ? $_REQUEST['poll_length'] : '';
- $poll_option_text = (!empty($_REQUEST['poll_option_text'])) ? $_REQUEST['poll_option_text'] : '';
+ $message = (!empty($_POST['message'])) ? $_POST['message'] : '';
+ $subject = (!empty($_POST['subject'])) ? $_POST['subject'] : '';
+ $username = (!empty($_POST['username'])) ? $_POST['username'] : '';
+ $topic_type = (!empty($_POST['topic_type'])) ? intval($_POST['topic_type']) : POST_NORMAL;
+ $icon_id = (!empty($_POST['icon'])) ? intval($_POST['icon']) : 0;
+
+ $enable_html = (!intval($config['allow_html'])) ? 0 : ((!empty($_POST['disable_html'])) ? 0 : 1);
+ $enable_bbcode = (!intval($config['allow_bbcode'])) ? 0 : ((!empty($_POST['disable_bbcode'])) ? 0 : 1);
+ $enable_smilies = (!intval($config['allow_smilies'])) ? 0 : ((!empty($_POST['disable_smilies'])) ? 0 : 1);
+ $enable_urls = (!empty($_POST['disable_magic_url'])) ? 0 : 1;
+ $enable_sig = (empty($_POST['attach_sig'])) ? 1 : 0;
+
+ $poll_subject = (!empty($_POST['poll_subject'])) ? $_POST['poll_subject'] : '';
+ $poll_length = (!empty($_POST['poll_length'])) ? $_POST['poll_length'] : '';
+ $poll_option_text = (!empty($_POST['poll_option_text'])) ? $_POST['poll_option_text'] : '';
// Grab md5 'checksum' of new message
$message_md5 = md5($message);
@@ -335,11 +335,11 @@ if (isset($_REQUEST['post']))
{
$topic_sql = array(
'forum_id' => intval($forum_id),
- 'topic_title' => htmlspecialchars($subject),
+ 'topic_title' => $subject,
'topic_poster' => intval($user->data['user_id']),
'topic_time' => $current_time,
- 'topic_type' => (!empty($enable_icons)) ? intval($topic_type) : 0,
- 'icon_id' => $icon_id,
+ 'topic_type' => $topic_type,
+ 'icon_id' => $icon_id,
'topic_approved'=> (!empty($enable_moderate) && !$auth->acl_gets('f_ignorequeue', 'm_', 'a_', intval($forum_id))) ? 0 : 1,
);
if (!empty($poll_options))
@@ -380,7 +380,7 @@ if (isset($_REQUEST['post']))
// post_text ... may merge into posts table
$post_text_sql = array(
- 'post_subject' => htmlspecialchars($subject),
+ 'post_subject' => $subject,
'bbcode_uid' => $bbcode_uid,
'post_id' => intval($post_id),
);