aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-01-17 18:03:15 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-01-17 18:03:15 +0000
commit4d4eab9c321d9e6fae1753f6c327bc172b34c2e6 (patch)
tree45b9ea44ed357a8a8ac0acc54b9fd85eec1d02d9 /phpBB/posting.php
parent4cab6197583eaee831b2bee30838a9f0a7cd6aa7 (diff)
downloadforums-4d4eab9c321d9e6fae1753f6c327bc172b34c2e6.tar
forums-4d4eab9c321d9e6fae1753f6c327bc172b34c2e6.tar.gz
forums-4d4eab9c321d9e6fae1753f6c327bc172b34c2e6.tar.bz2
forums-4d4eab9c321d9e6fae1753f6c327bc172b34c2e6.tar.xz
forums-4d4eab9c321d9e6fae1753f6c327bc172b34c2e6.zip
just preparing...
git-svn-id: file:///svn/phpbb/trunk@5468 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 36e4ff1dd0..276db4355d 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -250,7 +250,7 @@ if ($sql)
{
$sql = 'SELECT draft_id
FROM ' . DRAFTS_TABLE . '
- WHERE (forum_id = ' . $forum_id . (($topic_id) ? " OR topic_id = $topic_id" : '') . ')
+ WHERE (forum_id IN (' . $forum_id . ', 0)' . (($topic_id) ? " OR topic_id = $topic_id" : '') . ')
AND user_id = ' . $user->data['user_id'] .
(($draft_id) ? " AND draft_id <> $draft_id" : '');
$result = $db->sql_query_limit($sql, 1);
@@ -486,8 +486,8 @@ if ($draft_id && $user->data['is_registered'] && $auth->acl_get('u_savedrafts'))
if ($row = $db->sql_fetchrow($result))
{
- $_REQUEST['subject'] = strtr($row['draft_subject'], array_flip(get_html_translation_table(HTML_ENTITIES)));
- $_POST['message'] = strtr($row['draft_message'], array_flip(get_html_translation_table(HTML_ENTITIES)));
+ $_REQUEST['subject'] = html_entity_decode($row['draft_subject']);
+ $_REQUEST['message'] = html_entity_decode($row['draft_message']);
$refresh = true;
$template->assign_var('S_DRAFT_LOADED', true);
}