* fix bug for build url in PATH_INFO.

This commit is contained in:
wangyidong
2022-06-22 11:45:26 +08:00
parent c219ffdc7c
commit 1e7ec30f10
3 changed files with 7 additions and 1 deletions
+4
View File
@@ -30,6 +30,7 @@ $filter->default->cookie['hideMenu'] = 'equal::true';
$filter->default->cookie['tab'] = 'reg::word';
$filter->default->cookie['goback'] = 'reg::any';
$filter->index = new stdclass();
$filter->my = new stdclass();
$filter->bug = new stdclass();
$filter->caselib = new stdclass();
@@ -68,6 +69,7 @@ $filter->tree = new stdclass();
$filter->productplan = new stdclass();
$filter->kanban = new stdclass();
$filter->index->index = new stdclass();
$filter->block->default = new stdclass();
$filter->block->main = new stdclass();
$filter->my->work = new stdclass();
@@ -166,6 +168,8 @@ $filter->tree->browse = new stdclass();
$filter->productplan->browse = new stdclass();
$filter->kanban->space = new stdclass();
$filter->index->index->get['open'] = 'reg::base64';
$filter->my->work->cookie['pagerMyTask'] = 'int';
$filter->my->work->cookie['pagerMyRequirement'] = 'int';
$filter->my->work->cookie['pagerMyStory'] = 'int';
+2 -1
View File
@@ -2363,7 +2363,8 @@ EOD;
}
$url = helper::safe64Encode($_SERVER['REQUEST_URI']);
$redirectUrl = helper::createLink('index', 'index', "open=$url");
$redirectUrl = helper::createLink('index', 'index');
$redirectUrl .= strpos($redirectUrl, '?') === false ? "?open=$url" : "&open=$url";
die(header("location: $redirectUrl"));
}
+1
View File
@@ -34,6 +34,7 @@ class index extends control
public function index($open = '')
{
if($this->app->getViewType() == 'mhtml') $this->locate($this->createLink('my', 'index'));
if($this->get->open) $open = $this->get->open;
$latestVersionList = array();
if(isset($this->config->global->latestVersionList)) $latestVersionList = json_decode($this->config->global->latestVersionList);