From 0f74d12896613fa30d3ca521cd4f9619fe47f0c4 Mon Sep 17 00:00:00 2001 From: guanxiying Date: Thu, 21 Nov 2019 15:41:41 +0800 Subject: [PATCH] * Revert httponly param when set lang and theme cookie. --- framework/base/router.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/base/router.class.php b/framework/base/router.class.php index d64e2b23cd..6274f40f78 100644 --- a/framework/base/router.class.php +++ b/framework/base/router.class.php @@ -867,7 +867,7 @@ class baseRouter $this->clientLang = $this->config->default->lang; } - setcookie('lang', $this->clientLang, $this->config->cookieLife, $this->config->webRoot, '', false, true); + setcookie('lang', $this->clientLang, $this->config->cookieLife, $this->config->webRoot, '', false, false); if(!isset($_COOKIE['lang'])) $_COOKIE['lang'] = $this->clientLang; return true; @@ -921,7 +921,7 @@ class baseRouter $this->clientTheme = $this->config->default->theme; } - setcookie('theme', $this->clientTheme, $this->config->cookieLife, $this->config->webRoot, '', false, true); + setcookie('theme', $this->clientTheme, $this->config->cookieLife, $this->config->webRoot, '', false, false); if(!isset($_COOKIE['theme'])) $_COOKIE['theme'] = $this->clientTheme; return true;