Skip to content

Commit

Permalink
[2.1.2] 在一些系统中 GLOB_BRACE 常量无效
Browse files Browse the repository at this point in the history
如 PHP docker (Alpine)
docker-library/php#719
  • Loading branch information
idawnlight committed Jul 30, 2019
1 parent c65fa9b commit 55dfa20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Console.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -142,4 +142,4 @@ public function testMailForm()

return $form;
}
}
}

0 comments on commit 55dfa20

Please sign in to comment.