diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-02-20 17:39:03 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-02-20 17:39:03 +0000 |
commit | dfe488f8b1e4b22135bb88e9abe4f19544f405df (patch) | |
tree | 6310f41cb3a9f0a4e788112716627e064963388e /phpBB/posting.php | |
parent | b7a60afbab01b1b40a5fa2c62683cf0b88b428fa (diff) | |
download | forums-dfe488f8b1e4b22135bb88e9abe4f19544f405df.tar forums-dfe488f8b1e4b22135bb88e9abe4f19544f405df.tar.gz forums-dfe488f8b1e4b22135bb88e9abe4f19544f405df.tar.bz2 forums-dfe488f8b1e4b22135bb88e9abe4f19544f405df.tar.xz forums-dfe488f8b1e4b22135bb88e9abe4f19544f405df.zip |
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
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r-- | phpBB/posting.php | 5 |
1 files changed, 5 insertions, 0 deletions
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'] : ""; + } } } |