Skip to content
Permalink
Browse files

版本更新

  • Loading branch information...
liu21st committed Dec 9, 2018
1 parent 0347d7c commit 4cbc0b5e93314446243ebc7d5f005f9c32864737
Showing with 2 additions and 2 deletions.
  1. +1 −1 base.php
  2. +1 −1 library/think/App.php
@@ -9,7 +9,7 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
define('THINK_VERSION', '5.0.22');
define('THINK_VERSION', '5.0.23');
define('THINK_START_TIME', microtime(true));
define('THINK_START_MEM', memory_get_usage());
define('EXT', '.php');
@@ -552,7 +552,7 @@ public static function module($result, $config, $convert = null)
// 获取控制器名
$controller = strip_tags($result[1] ?: $config['default_controller']);
if (!preg_match('/^[A-Za-z](\w)*$/', $controller)) {
if (!preg_match('/^[A-Za-z](\w|\.)*$/', $controller)) {
throw new HttpException(404, 'controller not exists:' . $controller);
}

0 comments on commit 4cbc0b5

Please sign in to comment.
You can’t perform that action at this time.