diff options
| author | Marc Alexander <admin@m-a-styles.de> | 2017-10-29 11:34:47 +0100 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2017-10-29 11:34:47 +0100 |
| commit | d0e25f2eed2550f397ed03928e442a91ea2c1739 (patch) | |
| tree | 71fd9fa7a603dc9da70551a75671cbf8032cb208 /phpBB | |
| parent | 3b5c624c03351b4e4acbfc1d1818576e04faea69 (diff) | |
| parent | 60596eb6756e3d2181ee6670cd123911b04524bf (diff) | |
| download | forums-d0e25f2eed2550f397ed03928e442a91ea2c1739.tar forums-d0e25f2eed2550f397ed03928e442a91ea2c1739.tar.gz forums-d0e25f2eed2550f397ed03928e442a91ea2c1739.tar.bz2 forums-d0e25f2eed2550f397ed03928e442a91ea2c1739.tar.xz forums-d0e25f2eed2550f397ed03928e442a91ea2c1739.zip | |
Merge pull request #5012 from kasimi/ticket/15060
[ticket/15060] Set correct forum id in user session data if f= is missing
Diffstat (limited to 'phpBB')
| -rw-r--r-- | phpBB/viewtopic.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index c94675a741..3f117eef6b 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -263,6 +263,10 @@ if (!$topic_data) $forum_id = (int) $topic_data['forum_id']; +// If the request is missing the f parameter, the forum id in the user session data is 0 at the moment. +// Let's fix that now so that the user can't hide from the forum's Who Is Online list. +$user->page['forum'] = $forum_id; + // Now we know the forum_id and can check the permissions if ($topic_data['topic_visibility'] != ITEM_APPROVED && !$auth->acl_get('m_approve', $forum_id)) { |
