From dfe488f8b1e4b22135bb88e9abe4f19544f405df Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Wed, 20 Feb 2002 17:39:03 +0000 Subject: Fix my hilariously dumb mistake in posting allowing unauthed users to post ... git-svn-id: file:///svn/phpbb/trunk@2200 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/posting.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phpBB/posting.php b/phpBB/posting.php index 54acde7030..2e429407ec 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -334,6 +334,7 @@ if ( !$is_auth[$is_auth_type] ) } header("Location: " . append_sid("login.$phpEx?redirect=posting.$phpEx&" . $redirect, true)); + exit; } // @@ -766,6 +767,10 @@ else $mode = 'reply'; } + else + { + $username = ( $post_info['user_id'] == ANONYMOUS && !empty($post_info['post_username']) ) ? $post_info['post_username'] : ""; + } } } -- cgit v1.2.1