删除MAGIC_QUOTES_GPC常量

This commit is contained in:
thinkphp
2015-02-24 09:11:12 +08:00
parent 8fc2f0d7fb
commit 20bd23c7d1
2 changed files with 0 additions and 4 deletions

View File

@@ -9,8 +9,6 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
define('MAGIC_QUOTES_GPC', false);
// 版本信息
define('THINK_VERSION', '4.0beta');
// 系统常量

View File

@@ -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);
}
}
}