mirror of https://github.com/BOINC/boinc.git
Fix for the security fix (allow reading forums when logged out)
svn path=/trunk/boinc/; revision=12067
This commit is contained in:
parent
8847ce6575
commit
3d9e92055f
|
@ -214,8 +214,10 @@ function show_post($post, $thread, $logged_in_user, $n, $controls=FORUM_CONTROLS
|
|||
$user = $post->getOwner();
|
||||
global $no_forum_rating;
|
||||
|
||||
if ($logged_in_user) {
|
||||
$tokens = url_tokens($logged_in_user->getAuthenticator());
|
||||
}
|
||||
|
||||
$tokens = url_tokens($logged_in_user->getAuthenticator());
|
||||
//If the user that made this post is on the list of people to ignore, change thresholds to be much more strict
|
||||
if ($logged_in_user){
|
||||
if (in_array($user->getID(),$logged_in_user->getIgnoreList())){
|
||||
|
|
|
@ -18,7 +18,9 @@ if ($filter != "false"){
|
|||
}
|
||||
|
||||
$logged_in_user = re_get_logged_in_user(false);
|
||||
$tokens = url_tokens($logged_in_user->getAuthenticator());
|
||||
if ($logged_in_user) {
|
||||
$tokens = url_tokens($logged_in_user->getAuthenticator());
|
||||
}
|
||||
|
||||
// Fetch the thread and increment the number of views
|
||||
$thread = new Thread($threadid);
|
||||
|
|
Loading…
Reference in New Issue