Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-11850

$user->page contains bogus data on controller (app.php) pages

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Fixed
    • 3.1.0-dev
    • 3.1.0-a1
    • Sessions
    • None

    Description

      On URL /local/phpbb/app.php/givekarma/post/3?giver=2&delete, the $user->page variable looks like this:

      array(7) {
        ["page_name"]=>
        string(1) "3"
        ["page_dir"]=>
        string(0) ""
        ["query_string"]=>
        string(14) "giver=2&delete"
        ["script_path"]=>
        string(36) "/local/phpbb/app.php/givekarma/post/"
        ["root_script_path"]=>
        string(36) "/local/phpbb/app.php/givekarma/post/"
        ["page"]=>
        string(16) "3?giver=2&delete"
        ["forum"]=>
        int(0)
      }

      The page_dir, (root_)script_path and page are all wrong. This causes functions relying on on these variables (like confirm_box(), for example) to fail on controller pages.

      When the url is stripped of app.php (/local/phpbb/givekarma/post/3?giver=2&delete), the values are less wrong, but still not right either:

      array(7) {
        ["page_name"]=>
        string(7) "app.php"
        ["page_dir"]=>
        string(0) ""
        ["query_string"]=>
        string(14) "giver=2&delete"
        ["script_path"]=>
        string(13) "/local/phpbb/"
        ["root_script_path"]=>
        string(13) "/local/phpbb/"
        ["page"]=>
        string(22) "app.php?giver=2&delete"
        ["forum"]=>
        int(0)
      }

      Attachments

        Activity

          People

            EXreaction EXreaction [X] (Inactive)
            rechosen rechosen [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: