Current time: 03-21-2010, 06:27 AM Hello There, Guest! (LoginRegister)


 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] Users ban is not lifted in class_session - bad banned cache array?
10-13-2008, 09:26 AM
Post: #1
[F] Users ban is not lifted in class_session - bad banned cache array?
MyBB 1.4.2

Ban for user is not lifted by class_session.php. Probably because of bad array in data cache.
class_session.php is using $UID as a key:
PHP Code:
        // Read the banned cache
        
$bannedcache $cache->read("banned");    
        ...
        ...
        if(
$bannedcache[$uid])
        { 
But in class_datacache.php we have:
PHP Code:
    function update_banned()
    {
        global 
$db;
        
        
$bans = array();
        
        
$query $db->simple_select("banned");
        while(
$ban $db->fetch_array($query))
        {
            
$bans[] = $ban;
        }
    } 
And result - banned cache is not indexed by UIDs.

www.kozik.net.pl
- So... Maybe you shouldn't have hacked it.
- And why don't you try not breathing. Hurts, dunnit. (userfriendly.org)
Visit this user's website Find all posts by this user
10-16-2008, 07:29 PM
Post: #2
[F] Users ban is not lifted in class_session - bad banned cache array?
Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.

With regards,
MyBB Group

[Image: sig.php?mybb]
MyBB is on Facebook and Twitter
Hosting available, PM for details
Visit this user's website Find all posts by this user


Forum Jump: