Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-11850

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 3.1.0-a1
    • 3.1.0-dev
    • Sessions
    • None

      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)
      }

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

              Created:
              Updated:
              Resolved: