Fix for the security fix (allow reading forums when logged out)

svn path=/trunk/boinc/; revision=12067
This commit is contained in:
Rytis Slatkevičius 2007-02-09 21:07:51 +00:00
parent 8847ce6575
commit 3d9e92055f
2 changed files with 6 additions and 2 deletions

View File

@ -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())){

View File

@ -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);