From 5df4e9eb044a6af093fa350d0d96c2e6343c392e Mon Sep 17 00:00:00 2001 From: songchenxuan Date: Thu, 11 May 2023 14:28:17 +0800 Subject: [PATCH] * Replace setcookie to helper::setcookie. --- module/bug/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/bug/control.php b/module/bug/control.php index 90d8b2ae74..6f09e108d6 100755 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -347,7 +347,7 @@ class bug extends control if(dao::isError()) $this->send(array('result' => 'fail', 'message' => dao::getError())); /* Set from param if there is a object to transfer bug. */ - setcookie('lastBugModule', (int)$data->data->module, $this->config->cookieLife, $this->config->webRoot, '', $this->config->cookieSecure, true); + helper::setcookie('lastBugModule', (string)$data->data->module); $bug = $this->bug->getByID($bugID);