From d57a16ad6964cc76843b7571f29c999ab6d8577a Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Wed, 27 Jun 2007 16:02:41 +0000 Subject: [PATCH] deny access to the posting page for bots... git-svn-id: file:///svn/phpbb/trunk@7804 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/docs/CHANGELOG.html | 6 ++++-- phpBB/posting.php | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html index 9ec9144bb4..c762718e33 100644 --- a/phpBB/docs/CHANGELOG.html +++ b/phpBB/docs/CHANGELOG.html @@ -187,9 +187,11 @@ p a { diff --git a/phpBB/posting.php b/phpBB/posting.php index 675b390672..f3e6c008c4 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -164,6 +164,10 @@ if ($post_data['forum_password']) } // Check permissions +if ($user->data['is_bot']) +{ + redirect(append_sid("{$phpbb_root_path}index.$phpEx")); +} // Is the user able to read within this forum? if (!$auth->acl_get('f_read', $forum_id))