From a204f90c38652f442d37ec2204fd73641ae0edf2 Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Fri, 18 Oct 2024 16:51:09 +0800 Subject: [PATCH] * [bug#56225,done,1h] Determine if it is a POST request. --- module/execution/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/execution/control.php b/module/execution/control.php index 5e7b333621..6cc71fed04 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -2118,7 +2118,7 @@ class execution extends control if(!$project->hasProduct) return $this->sendError($this->lang->project->cannotManageProducts, true); if($project->model == 'waterfall' || $project->model == 'waterfallplus') return $this->sendError(sprintf($this->lang->execution->cannotManageProducts, zget($this->lang->project->modelList, $project->model)), true); - if(!empty($_POST)) + if($_SERVER['REQUEST_METHOD'] == 'POST') { $oldProducts = $this->loadModel('product')->getProducts($executionID); $oldProducts = array_keys($oldProducts);