From 8f849cc8c3e7f030927e9ad6593de017703f238c Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Tue, 19 Apr 2022 16:06:27 +0800 Subject: [PATCH] * Fix bug#21640. --- module/execution/model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/execution/model.php b/module/execution/model.php index bfe6908a0b..428699a89a 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -44,10 +44,10 @@ class executionModel extends model echo(js::alert($this->lang->execution->accessDenied)); - if(!$this->server->http_referer) return print(js::locate(helper::createLink('execution', 'index'))); + if(!$this->server->http_referer) return print(js::locate(helper::createLink('execution', 'all'))); $loginLink = $this->config->requestType == 'GET' ? "?{$this->config->moduleVar}=user&{$this->config->methodVar}=login" : "user{$this->config->requestFix}login"; - if(strpos($this->server->http_referer, $loginLink) !== false) return print(js::locate(helper::createLink('execution', 'index'))); + if(strpos($this->server->http_referer, $loginLink) !== false) return print(js::locate(helper::createLink('execution', 'all'))); return print(js::locate(helper::createLink('execution', 'all'))); }