From 55dfa20e62c67a984d4fa7a7ea54c9bc824a4a45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E6=98=8E=E4=BD=99=E5=85=89?= Date: Tue, 30 Jul 2019 17:43:20 +0800 Subject: [PATCH] =?UTF-8?q?[2.1.2]=20=E5=9C=A8=E4=B8=80=E4=BA=9B=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E4=B8=AD=20GLOB=5FBRACE=20=E5=B8=B8=E9=87=8F=E6=97=A0?= =?UTF-8?q?=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 如 PHP docker (Alpine) docker-library/php#719 --- Console.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Console.php b/Console.php index 425d256..bbd8eed 100644 --- a/Console.php +++ b/Console.php @@ -29,7 +29,7 @@ public function execute() /** 管理员权限 */ $this->widget('Widget_User')->pass('administrator'); $this->_dir = dirname(__FILE__); - $files = glob($this->_dir . '/*.{html,HTML}', GLOB_BRACE); + $files = glob($this->_dir . '/*.html'); $this->_currentFile = $this->request->get('file', 'owner.html'); if (preg_match("/^([_0-9a-z-\.\ ])+$/i", $this->_currentFile) @@ -142,4 +142,4 @@ public function testMailForm() return $form; } -} \ No newline at end of file +}