diff options
author | Henry Sudhof <kellanved@phpbb.com> | 2007-12-05 14:16:25 +0000 |
---|---|---|
committer | Henry Sudhof <kellanved@phpbb.com> | 2007-12-05 14:16:25 +0000 |
commit | b1dc0717e4ba0c35abb37bc97239629a642cd498 (patch) | |
tree | b18cfc83e4877148264dd2353591f1cfd0844f6f /phpBB/posting.php | |
parent | 514b5e04786f4b5a692ee9767d21ce20edcbe500 (diff) | |
download | forums-b1dc0717e4ba0c35abb37bc97239629a642cd498.tar forums-b1dc0717e4ba0c35abb37bc97239629a642cd498.tar.gz forums-b1dc0717e4ba0c35abb37bc97239629a642cd498.tar.bz2 forums-b1dc0717e4ba0c35abb37bc97239629a642cd498.tar.xz forums-b1dc0717e4ba0c35abb37bc97239629a642cd498.zip |
#15889
git-svn-id: file:///svn/phpbb/trunk@8264 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r-- | phpBB/posting.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index 4bf60f03fe..1e8ac31662 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -530,6 +530,7 @@ if ($save && $user->data['is_registered'] && $auth->acl_get('u_savedrafts') && ( $error[] = $user->lang['TOO_FEW_CHARS']; } } + //unset($subject, $message); unset($subject, $message); } @@ -568,6 +569,7 @@ $solved_captcha = false; if ($submit || $preview || $refresh) { + $post_data['topic_cur_post_id'] = request_var('topic_cur_post_id', 0); $post_data['post_subject'] = utf8_normalize_nfc(request_var('subject', '', true)); $message_parser->message = utf8_normalize_nfc(request_var('message', '', true)); @@ -764,7 +766,7 @@ if ($submit || $preview || $refresh) } // check form - if (!check_form_key('posting', false, '', false, 2)) + if (($submit || $preview) && !check_form_key('posting', false, '', false, 2)) { $error[] = $user->lang['FORM_INVALID']; } |