From 41d53000292c5b2570f341bf897def91bad35d77 Mon Sep 17 00:00:00 2001 From: huangdijia Date: Tue, 15 Dec 2015 14:35:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E4=B8=80=E4=B8=AA=E8=A2=AB?= =?UTF-8?q?=E5=BA=9F=E5=BC=83=E7=9A=84=E5=B8=B8=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/cookie.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/cookie.php b/library/think/cookie.php index 8ab69af9..2954afe4 100644 --- a/library/think/cookie.php +++ b/library/think/cookie.php @@ -104,7 +104,7 @@ class Cookie $value = $_COOKIE[$name]; if (0 === strpos($value, 'think:')) { $value = substr($value, 6); - $value = json_decode(MAGIC_QUOTES_GPC ? stripslashes($value) : $value, true); + $value = json_decode($value, true); array_walk_recursive($value, $this->jsonFormatProtect, 'decode'); } return $value;