vendethiel / ezarena

Reprise de l'ultimarena pour ajouter plus de fonctionnalités et un RPG !
MIT License
4 stars 3 forks source link

Check that topic_password works #35

Closed vendethiel closed 9 years ago

vendethiel commented 9 years ago
    if( !empty($forum_topic_data['topic_password']) )
    {
        $passdata = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_tpass']) ) ? unserialize(stripslashes($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_tpass'])) : '';
        if( $passdata[$topic_id] != md5($forum_topic_data['topic_password']) )
        {
            password_box('topic', $redirect);
        }
    }

If it "undefined index"es, then something's (probably) wrong :)

vendethiel commented 9 years ago

https://github.com/vendethiel/ezarena/search?utf8=%E2%9C%93&q=topic_password Seems to be missing in the post body, though... And probably in every other place ("recent topics" and so on)... It doesn't even seem to be in the SQL...

Choices :