diff --git a/docs/changelog.md b/docs/changelog.md index 10c88bde..517f8f3e 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,6 +1,12 @@ # 更新记录 通过访问 https://www.dedebiz.com/git 获取完整更新记录 +# v6.1.1 +- 修正子目录安装问题; +- 生产环境错误处理调整; +- 重写联动类型缓存模式&移除对memcache支持; +- 移除无效资源; + # v6.1.0 - 兼容PHP8+; - 修正已知存在的安全问题; diff --git a/src/system/common.inc.php b/src/system/common.inc.php index 41e0c324..4767500d 100755 --- a/src/system/common.inc.php +++ b/src/system/common.inc.php @@ -80,8 +80,9 @@ function _RunMagicQuotes(&$svar) } return $svar; } -foreach (array('_GET', '_POST', '_COOKIE', '_REQUEST') as $_request) { - foreach ($$_request as $_k => $_v) { + +foreach (array('_GET', '_POST', '_COOKIE') as $_req) { + foreach ($$_req as $_k => $_v) { if ($_k == 'nvarname') ${$_k} = $_v; else ${$_k} = _RunMagicQuotes($_v); } @@ -225,7 +226,6 @@ if (!isset($cfg_NotPrintHead)) { if (PHP_SAPI != 'cli') { header("Content-Type: text/html; charset={$cfg_soft_lang}"); } - } //自动加载类库处理 if (version_compare(PHP_VERSION, '7.2.0', '>=')) {