Browse Source

bump 6.1.1

tags/6.1.1^2
tianya 2 years ago
parent
commit
2bd0b7356f
2 changed files with 9 additions and 3 deletions
  1. +6
    -0
      docs/changelog.md
  2. +3
    -3
      src/system/common.inc.php

+ 6
- 0
docs/changelog.md View File

@@ -1,6 +1,12 @@
# 更新记录
通过访问 https://www.dedebiz.com/git 获取完整更新记录

# v6.1.1
- 修正子目录安装问题;
- 生产环境错误处理调整;
- 重写联动类型缓存模式&移除对memcache支持;
- 移除无效资源;

# v6.1.0
- 兼容PHP8+;
- 修正已知存在的安全问题;


+ 3
- 3
src/system/common.inc.php View File

@@ -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', '>=')) {


Loading…
Cancel
Save