-
Bug
-
Resolution: Fixed
-
Blocker
-
3.1.0-dev
-
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)
|
}
|