From 20bd23c7d14cb1f6f85a53ac38cda0552ceef40b Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 24 Feb 2015 09:11:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4MAGIC=5FQUOTES=5FGPC=E5=B8=B8?= =?UTF-8?q?=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base.php | 2 -- traits/think/model/auto.php | 2 -- 2 files changed, 4 deletions(-) diff --git a/base.php b/base.php index f10df528..0124b472 100644 --- a/base.php +++ b/base.php @@ -9,8 +9,6 @@ // | Author: liu21st // +---------------------------------------------------------------------- -define('MAGIC_QUOTES_GPC', false); - // 版本信息 define('THINK_VERSION', '4.0beta'); // 系统常量 diff --git a/traits/think/model/auto.php b/traits/think/model/auto.php index 5f2f871d..92c6feb6 100644 --- a/traits/think/model/auto.php +++ b/traits/think/model/auto.php @@ -74,8 +74,6 @@ trait Auto { foreach ($data as $key=>$val){ if(!in_array($key,$fields)) { unset($data[$key]); - }elseif(MAGIC_QUOTES_GPC && is_string($val)){ - $data[$key] = stripslashes($val); } } }