From b127067ee61b45d8fb37eb6738112ad0e08cb1d5 Mon Sep 17 00:00:00 2001 From: titrxw <1120309488@qq.com> Date: Tue, 24 Nov 2020 18:55:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9open=5Fbasedir=E5=9C=A8unix?= =?UTF-8?q?=E5=92=8Cwindows=E5=88=86=E9=9A=94=E7=AC=A6=E4=B8=8D=E4=B8=80?= =?UTF-8?q?=E8=87=B4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/Core/Bootstrap/RegisterSecurityDirBootstrap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/Core/Bootstrap/RegisterSecurityDirBootstrap.php b/Src/Core/Bootstrap/RegisterSecurityDirBootstrap.php index d9a13245..1f6182ed 100644 --- a/Src/Core/Bootstrap/RegisterSecurityDirBootstrap.php +++ b/Src/Core/Bootstrap/RegisterSecurityDirBootstrap.php @@ -19,7 +19,7 @@ public function bootstrap(App $app) { //设置安全限制目录 $openBaseDirConfig = $app->getConfigger()->get('app.setting.basedir', []); if (is_array($openBaseDirConfig)) { - $openBaseDirConfig = implode(':', $openBaseDirConfig); + $openBaseDirConfig = implode(PATH_SEPARATOR, $openBaseDirConfig); } $openBaseDir = [ @@ -29,6 +29,6 @@ public function bootstrap(App $app) { $openBaseDirConfig, session_save_path() ]; - ini_set('open_basedir', implode(':', $openBaseDir)); + ini_set('open_basedir', implode(PATH_SEPARATOR, $openBaseDir)); } }