From 482985aa4ac18edd834e5ea388e1f166e3751338 Mon Sep 17 00:00:00 2001 From: conory Date: Fri, 7 Feb 2020 21:45:11 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9C=88=EB=8F=84=EC=9A=B0=EC=97=90=EC=84=9C?= =?UTF-8?q?=20=EC=8B=A4=ED=96=89=ED=8C=8C=EC=9D=BC=EC=9D=84=20=EC=B2=B4?= =?UTF-8?q?=ED=81=AC=ED=95=98=EC=A7=80=20=EB=AA=BB=ED=95=98=EB=8A=94=20?= =?UTF-8?q?=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://xetown.com/questions/1333742 --- common/framework/storage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/framework/storage.php b/common/framework/storage.php index d864fd50e..06ae68f4a 100644 --- a/common/framework/storage.php +++ b/common/framework/storage.php @@ -152,7 +152,7 @@ class Storage public static function isExecutable($path) { $path = rtrim($path, '/\\'); - if (function_exists('exec')) + if (function_exists('exec') && !starts_with('win', \PHP_OS, false)) { @exec('/bin/ls -l ' . escapeshellarg($path), $output, $return_var); if ($return_var === 0)