* fix bug.

This commit is contained in:
wangyidong
2022-05-20 10:40:45 +08:00
parent eec42b3e57
commit a8531b8e58
2 changed files with 15 additions and 0 deletions

View File

@@ -617,6 +617,20 @@ class baseRouter
*/
public function setSuperVars()
{
$URI = $_SERVER['REQUEST_URI'];
if(strpos($URI, '?') !== false)
{
$parsedURL = parse_url($URI);
if(isset($parsedURL['query']))
{
parse_str($parsedURL['query'], $parsedQuery);
foreach($parsedQuery as $key => $value)
{
if(!isset($_GET[$key])) $_GET[$key] = $value;
}
}
}
$this->post = new super('post');
$this->get = new super('get');
$this->server = new super('server');

View File

@@ -261,6 +261,7 @@ class customModel extends model
if($module == 'execution' and $method == 'more') $hasPriv = true;
if($module == 'project' and $method == 'other') $hasPriv = true;
if(!$hasPriv and isset($vars)) unset($vars);
}
if($isTutorialMode || $hasPriv)