Bug tracker

This ticket has been moved to our new tracker. Open Ticket PHPBB3-520 now.

Logout and "not allowed as quickmod" (fix completed in vcs)

When I select something (for example "Lock topic") in quick-mod, click "Go" and "Yes" then phpBB log-outs me. When I log-in and "Click here to return to previous page" phpBB shows "Information": "not allowed as quickmod"

The same in normal MCP but using it previous page is not this "Information" but "View topic" page in MCP.

Comments / History

Posted by LEW21 (QA Team) on May 14th 2006, 13:22

I have newest version of Olympus from checkout.

Posted by ToonArmy (Development Team Member) on May 14th 2006, 14:38

BTW: You need to disable cookies to see these issues.

I have a patch to fix the logging out issues when hitting yes:
Code: Select all
diff -C3 -w -r1.397 functions.php
*** includes/functions.php      13 May 2006 17:48:21 -0000      1.397
--- includes/functions.php      14 May 2006 14:28:16 -0000
***************
*** 1344,1350 ****
        $s_hidden_fields = build_hidden_fields(array(
                'user_id'       => $user->data['user_id'],
                'sess'          => $user->session_id,
!               'sid'           => $SID)
        );

        // generate activation key
--- 1344,1350 ----
        $s_hidden_fields = build_hidden_fields(array(
                'user_id'       => $user->data['user_id'],
                'sess'          => $user->session_id,
!               'sid'           => str_replace('?sid=', '', $SID))
        );

        // generate activation key


This then brings up another issue which is the return to previous page link after locking/stickying/etc doesn't include a session id. The problem lies with these bits of code in mcp_main.php
Code: Select all
   if (strpos($redirect, '?') === false)
   {
      $redirect = substr_replace($redirect, ".$phpEx$SID&", strpos($redirect, '&'), 1);
   }

Linked ticket with changeset: r5931

Action performed by Anonymous (I am too lazy to register) on May 18th 2006, 21:03

Ticket details

Related SVN changesets